#dianas-animals_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/1306023969073397770
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
Do you have an example of a Subscription that was deleted? Specifically the Subscription ID? It will start sub_XXX
Information above. Thanks a lot. ๐
sub_1QKS9XRo8WwRNKUdMEJ2Foe4
In Test Mode
Sorry these are a bunch of screenshots which are useless to me. Please just write your questions and share text.
I can use the Subscription ID though, thanks!
I think I setup the webhook wrong for Brevo. But, can't figure out what I did wrong.
Lol sorry
You're welcome. ๐ Thank you so much for the help.
Okay I can see the event!
And I can see it was not delivered to "https://api.brevo.com/v3" successfully
The server returned this
{"message":"authentication not found in headers","code":"unauthorized"}
Is that not the correct URL for Brevo? This is the first webhook I have ever created myself
Does it seem wrong
I don't know
Unfortuntaly I cannot determine what is the correct URL here
That is up to you and how your web server is hosted
Its working correctly with my other setups it seems right?
I'm not sure what you mean here
Your server returned a status 401 response to our webhook request
And that message I listed above
I recommend you add some logging to your webhook handling function.
First to identify that the correct function is being reached and second to figure out where the error is coming from
How do I add logging to my webhook handling function?
Is that done in Stripe
Sorry I am new to coding
No unfortunately this is something you will need to write into the code that receives the webhook. If you are the the developer who wrote that code you may need to work with them.
It looks like you are using a 3rd party plugin called MemberPress
Yes it is a third party and Brevo which has the erro
Unfortunately that is who needs to perform the troubleshooting. However, it may be a good idea for you to double check the URL you provided for the webhook endpoint and make sure it's the one you expect.
You can test this out yourself by opening up Workbench and typing stripe trigger customer.subscription.deleted in the console at the bottom