#jose-fernndez_webhooks

1 messages · Page 1 of 1 (latest)

rain berryBOT
#

👋 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/1318203887081226281

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

patent quartz
#

Can you please rephrase your question in English, we can only help English Qs here

sharp monolith
#

Sorry.

The issue I have is that yesterday the Stripe webhook was disabled, and then we re-enabled it. However, during that time frame, some events were not sent, and from the dashboard, several events cannot be resent as the resend button is not available.

I have already escalated this issue, and it was suggested that I try using the Stripe CLI. However, I encountered errors. Upon reviewing the documentation, it states that this is only for the test environment, which was confirmed by the previous advisor.

patent quartz
#

If you're trying to resend a livemode event with the CLI that is supported, you just need to pass the live flag:

stripe events resend evt_1QWFtODzTrb9eRNqxlcp2gyN --live
sharp monolith
#

wow

#

but

#

So, is it possible to resend events in live mode? Let me try it.

patent quartz
#

Yes, that command above should work

sharp monolith
#

I’m getting this error:

{
"error": {
"message": "The provided key 'rk_live_*********************************************************************************************m249R5' does not have the required permissions for this endpoint on account 'acct_1M1yz7DzTrb9eRNq'. Please use a different key to perform this action.",
"type": "invalid_request_error"
}
}

I generated a secret key to use for this, but it seems it doesn’t have the required permissions. How can I generate a key with the necessary permissions to perform this action?

patent quartz
#

I would just do stripe login

sharp monolith
#

Let me try it.

#

Would accessing it this way work?

stripe login --api-key sk_li**

patent quartz
#

No you'd pass the --api-key at the command level if you prefer:

stripe events resend evt_xxx --live --api-key=sk_live_xxx
rain berryBOT
sharp monolith
#

Hi

#

When I run this command:

stripe events resend evt_1QWFtODzTrb9eRNqxlcp2gyN --live --api-key=sk_li********

I get the following error:

{
"error": {
"message": "No CLI endpoints found to retry delivery. Run 'stripe listen' and retry the request to see the event in the CLI, or provide a specific webhook endpoint.",
"param": "for_stripecli",
"type": "invalid_request_error"
}
}
How should I provide the webhook endpoint here to resolve this?

sharp monolith
#

If I need to resend multiple events, is there an easier way to do it?

#

What I mean is that I need to resend events for multiple transactions.

#

For example, is it possible to resend events for a pi_***?

tropic urchin
#

No, you have to specify the exact Event ID

sharp monolith
#

If multiple responses with status 500 are sent to Stripe when sending webhook events, does Stripe disable the webhook?

tropic urchin
#

I think Stripe will send you an email first and then disable it, yes. But you can enable it again anytime.

sharp monolith
#

But is it possible that the cause is sending an error in all the requests as a response?

tropic urchin
#

I am not sure what you mean by this.

sharp monolith
#

Well, what I would like to know is, what are the reasons why Stripe disables a webhook?

tropic urchin
#

Are you expecting your endpoint to respond with errors?

sharp monolith
#

No, it's just that there was an implementation where instead of sending status 200, it was sending error statuses, and I wanted to confirm if that could be the reason.

tropic urchin
#

Yes, that could be the reason.

sharp monolith
#

Ok, thx

tropic urchin
#

Happy to help.