#-chaii_webhooks
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1278707939544404109
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Have you added a log at the very beginning of your endpoint to see if the Webhook is successfully hitting your endpoint?
I have yes, with the stripe keys it is using. I can see these logs in vercel. There is a more useful error after that says:
⨯ TypeError: Cannot read private member #headersList from an object whose class did not declare it
at [nodejs.util.inspect.custom] (node:internal/deps/undici/undici:8647:64)
at formatValue (node:internal/util/inspect:806:19)
at inspect (node:internal/util/inspect:365:10)
at formatWithOptionsInternal (node:internal/util/inspect:2304:40)
at format (node:internal/util/inspect:2161:10)
at console.<anonymous> (/opt/rust/nodejs.js:2:196)
at X (/var/task/.next/server/app/api/stripe-webhook/route.js:1:7847)
at /var/task/.next/server/chunks/560.js:13:50281
at t.handleCallbackErrors (/var/task/.next/server/chunks/560.js:13:19228)
at /var/task/.next/server/chunks/560.js:13:50254
Hmm that error is not a Stripe error so not sure how much I can help with that
I'm not familiar with vercel but I see some SO posts like https://stackoverflow.com/questions/72805454/typeerror-cannot-read-private-member-from-an-object-whose-class-did-not-declare that talk about that error
So I'd recommend starting there