#dianas-animals_webhooks

1 messages ยท Page 1 of 1 (latest)

bold prismBOT
#

๐Ÿ‘‹ 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.

vagrant plover
lunar pike
#

Hi ๐Ÿ‘‹

Do you have an example of a Subscription that was deleted? Specifically the Subscription ID? It will start sub_XXX

vagrant plover
#

Information above. Thanks a lot. ๐Ÿ™‚

#

sub_1QKS9XRo8WwRNKUdMEJ2Foe4

#

In Test Mode

lunar pike
#

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!

vagrant plover
#

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.

lunar pike
#

Okay I can see the event!

#

The server returned this

{"message":"authentication not found in headers","code":"unauthorized"}
vagrant plover
#

Is that not the correct URL for Brevo? This is the first webhook I have ever created myself

#

Does it seem wrong

lunar pike
#

I don't know

vagrant plover
#

Like it should be long url

#

with mutiple characters

lunar pike
#

Unfortuntaly I cannot determine what is the correct URL here

#

That is up to you and how your web server is hosted

vagrant plover
#

Its working correctly with my other setups it seems right?

lunar pike
#

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

vagrant plover
#

How do I add logging to my webhook handling function?

#

Is that done in Stripe

#

Sorry I am new to coding

lunar pike
#

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

vagrant plover
#

Yes it is a third party and Brevo which has the erro

lunar pike
#

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