Error only when deployed on Vercel with my Stripe pls help
Unanswered
Mini Lop posted this in #help-forum
Mini LopOP
I have stripe.ts file that has a checkout function (works perfectly) and manageBilling function (to cancel subscriptions).
The manageBilling function doesn't seem to work (only when deployed). The error I get in the console is:
Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.
I call both of these functions in my handleCheckout and handleBilling functions, which I use onClick on my buttons (client components). Both Checkout function and manageBilling function use the same instance of Stripe with my STRIPE_SK key. I don't know why one works and not the other, it worked in localhost. I can provide code too.
Also, on vercel runtime logs, there is literally no error when pressing the button, instead I get code 200 (OK).
Can anyone please help?
The manageBilling function doesn't seem to work (only when deployed). The error I get in the console is:
Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.
I call both of these functions in my handleCheckout and handleBilling functions, which I use onClick on my buttons (client components). Both Checkout function and manageBilling function use the same instance of Stripe with my STRIPE_SK key. I don't know why one works and not the other, it worked in localhost. I can provide code too.
Also, on vercel runtime logs, there is literally no error when pressing the button, instead I get code 200 (OK).
Can anyone please help?
2 Replies
Mini LopOP
fixed
Risky
thats good to hear! is there anything in particular you did, so future people stumbling on the same issue can hopefully get it solved too?