#Kjartann-retrieve

1 messages · Page 1 of 1 (latest)

runic hemlock
#

Hey there, what do you see in your server logs when the customer doesn't exist and you attempt the request?

#

Can you share your code snippet?

jade blade
#

Yes give me a second

#
Error: No such customer: 'cus_LaAUwRwutEfPnJ'
    at Function.generate (/usr/src/app/node_modules/stripe/lib/Error.js:40:16)
    at res.toJSON.then.StripeAPIError.message (/usr/src/app/node_modules/stripe/lib/StripeResource.js:220:35)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

This is what I get, even in a try-catch block which I find odd

runic hemlock
#

What is odd about that?

jade blade
#

Well... I'm catching it like so, yet it manages to crash the application

#

Actually, I might just have made a fool of myself

#

Yeah, kids, always remember to switch to your development environment 🥲

runic hemlock
#

lol 🙂

jade blade
#

Thanks for the help