#bwestwood_webhooks

1 messages ¡ Page 1 of 1 (latest)

normal ventureBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1252742996705673287

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

uncut helm
#

Hi there

#

Taking a look at the event you shared

rain jungle
#

okay thanks

uncut helm
#

Did something about the webhook endpoint URL change?

rain jungle
#

webhook endpoint has been the same

uncut helm
#

You're right, it looks like Stripe is trying to deliver events to this URL but this URL is replying with a 307/redirect

rain jungle
#

this is the endpoint

uncut helm
#

Correct, that URL

rain jungle
#

I am using Next.js and haven;t touched the code at all

#

like I said it has been working but its not now

uncut helm
#

That error rate shows we've never successfully delivered a checkout.session.completed event to this endpoint

#

What was working?

rain jungle
#

the webhook being delivered to the endpoint and giving me 200 status for that evt

uncut helm
#

Are you able to review any network logs on your end to see the requests made by Stripe to this URL?

rain jungle
#

would I be able to test that endpoint with the Stripe secret key in test mode?

#

no, I wasn't able to because verrcel on free plan only lets me view back 1 hour

#

it happened hours ago

uncut helm
#

I see

#

You can try to use the Dashboard to trigger a resend of that event then inspect the logs on your end

rain jungle
#

okay I am and i dont see the logs

#

but i think this might be the problem

#

i did update the sitemap i think

#

and it uses www.

#

and this is this page

#

there is no www.

#

can not having a www. cause this redirect

#

?

#

the resend of the event doesn't show in the vercel logs at all

uncut helm
#

You can edit the endpoint URL in the Dashboard and see if that fixes the issue

rain jungle
#

I am getting this in the dashboard after updating URL

#

I think that was the issue, but there would be no way to get that information from the checkout session completed from earlier?

uncut helm
#

You can trigger a manual resend of those failed events

#

Click into each of the events where deliver failed and click on the "resend" button on the right

rain jungle
#

they are now failing with a 500 error

#

evt_1PT4A2IPblDJirEcQ0snbY75

uncut helm
#

Okay, anything you can see on the Vercel side?

rain jungle
#

yea failed prisma inovaction

#

invocation

#

which is my ORM

#

but I guess even if i resend the evt, I cant get the form data values from earlier that he put in on my custom form before paying

uncut helm
#

If those values were on a form outside of/separate from Checkout then that's correct, there's no way to get those back from these events

rain jungle
#

Okay yea I think everything is good now. Thank you for your help and time!