#orelzman_api

1 messages Β· Page 1 of 1 (latest)

stray relicBOT
#

πŸ‘‹ 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/1310950724267409420

πŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

orchid mica
#

Otherwise not really an official way via the API as we don't expose the delivery attempts directly

tepid siren
#

Hey, thanks for the response

#

How could I infer it from the pending_webhooks?

#

I am trying to create a tool that will notify the owner of the stripe account when a webhook has failed.

orchid mica
#

Well if pending_webhook is >= 1 then you can assume there's delivery failures. However 0 won't necessarily mean success as it can also mean we didn't actually try to send it – perhaps they don't have a webhook configured to listen for those events

#

Like I said, not a perfect way to do it

tepid siren
#

I see.

But I can be sure that if a specific event has pending_webhook >= 1, these webhooks are failures?

orchid mica
#

Number of webhooks that haven’t been successfully delivered (for example, to return a 20x response) to the URLs you specify.
Is the description

#

Try it out!

tepid siren
#

Giving it a go! πŸ™‚

#

What am I missing?

orchid mica
#

Paste the evt_xxx ID please – easier for me to look at that directly

tepid siren
#

"evt_3QPNepRxhYQDfRYG1WNqE6ci"

orchid mica
#

Hmm, looks like you're sending it to the CLI?

#

We technically deem CLI forwarded events successful internally so I guess pending_webhooks reflects that

#

Try it with a non-CLI webhook, maybe via ngrok

tepid siren
#

I use stripe nodejs sdk

#

oh

#

i see

#

okay, just a moment

#

Will it stay pending forever?

orchid mica
tepid siren
#

Now it works.

#

Okay, I understand.

#

Thank you πŸ™‚

#

Is there a way to get more details on that pending webhook?

#

Or only a number

orchid mica
#

Nope, as I said we don't expose the devliery attempts in the API