#mulo_webhooks-502
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/1278471975500779623
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mulo_webhooks, 2 days ago, 15 messages
- mulo_webhooks, 2 days ago, 14 messages
in my backend I always send response.status(200).end();
so why am I getting it twice?
Can you grab the Event ID for both of the webhooks and paste them here?
Should look like this --> evt_abc123
can i grab those from dashboard?(i dont save them in the backend)
Yup! they should be retrievable by searching the Subscription ID and looking at the related events
I need the actual text of the Event ID so I can view it on my end. Can you copy/paste?
evt_1PssRkK98lEnV33Fzf4CgbtU
now that i notice i do get sometimes a log:
[ErrorReply: NOAUTH Authentication required.]
tho not sure where it logs out from
What's the Event ID for the duplicate?
im guessing is the same id
Ah, okay. Let me look
that costumer there is the only one
i did get webhook twice for other costumers tho
so is a reocurring issue
Wait, you sent me the wrong event. You were talking about invoice.paid but you copy/pasted a checkout.session.completed Event ID
ah sec
in_1PssRhK98lEnV33FRqugxLuW
im only linstening for invoice.paid
If you look up the ID for that Invoice's invoice.paid Event (evt_1PssRlK98lEnV33FHWU5z2iB) you'll see that there was a failed webhook and a successful one. The failed one sent back 502 BAD GATEWAY to Stripe, so something is awry with your server and/or the webhook handler if this is happening frequently.
[ErrorReply: NOAUTH Authentication required.]
does this have to do with it?
Could be, but that's not a Stripe error, so I have no idea
i mean the code is the same the 2nd time around, so i dont understand how it always fails the 1st time, but then the 2nd works
also by the time i save the event in my db, it means it can only reply with 200
as there are no other options in my code after that
502 errors indicate an internal server error. You might want to look into what http_bad_gateway means and do a network dump of all the requests your server received during the failed webhook attempt
502 is my backend script that replies with such code?
502 is an error. You'll need to look this up on your own and attempt to find a solution. We can't really help when it comes to server configuration issues or webhooks that fail due to your server unfortunately
I get that, but if my code saves the event for both when bad gateway and for when 200, it means my server is receiving both events and saving them, which at that point my code can only return 200
Something is indeed causing it to send back a 502, so all I can really recommend is doing a network dump of the server logs and looking through them for clues if you don't have any leads at this point