#jairo094215_webhooks

1 messages ยท Page 1 of 1 (latest)

tardy meteorBOT
#

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

๐Ÿ“ 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.

faint beacon
#

๐Ÿ‘‹ happy to help

surreal grail
#

And also, could I retry the delivery? Or is it impossible after 15 days?

faint beacon
#

Create an event destination to receive events at an HTTPS webhook endpoint. Receiving webhook events is particularly useful for listening to asynchronous events such as when a customer's bank confirms a payment, a customer disputes a charge, a recurring payment succeeds, or when collecting subscription payments.

surreal grail
#

Thanks for the info. I'm trying to retry the event using Stripe CLI but it seems that I can only retry events from Sandbox

#

I executed : stripe login --api-key pk_live_xxx

faint beacon
#

you can retry events from live as well

surreal grail
#

And then: stripe events resend evt_1SKdDUDyCiiQ0txVT92rJhzH --webhook-endpoint=we_17HfwpDyCiiQ0txVppBXEpjr

faint beacon
#

that's not how it works

surreal grail
#

But I'm getting this error: No such notification: 'evt_1SKdDUDyCiiQ0txVT92rJhzH'; a similar object exists in live mode, but a test mode key was used to make this request

faint beacon
#

you need to add the --live

#

by default the resend command uses test mode

surreal grail
#

ah ok, excuse me, I didn't notice this argument

#

Let me try again

#

Ok, now there is a different error: The provided key 'rk_live_*********************************************************************************************HrtpRY' does not have the required permissions for this endpoint on account 'acct_16HHobDyCiiQ0txV'. Please use a different key to perform this action

#

But I specified a different key on login :/

faint beacon
#

again that's not how this works

#

let me help you

#

you need to go to your dashboard and go to the API keys page

#

find the Restricted Key for the CLI

#

edit it

#

and find All webhook permission

surreal grail
#

Ok, I'm in

faint beacon
#

and mark it as Write

surreal grail
#

Ok, I'm able to resend the event, but it continues failing and I think I know what is happening

#

let me show you

faint beacon
#

sure

surreal grail
#

It seems that this event was originally sent to the endpoint that appears in the snapshot, but it's not our operative webhook endpoint. Maybe it was enabled accidentally, but now this endpoint is disabled

#

And I think that now my manual retries are using the same endpoint

#

our active webhook endpoint is: we_1IgSRbDyCiiQ0txVcQepuORc

faint beacon
#

if you're using the --webhook-endpoint=we_1IgSRbDyCiiQ0txVcQepuORc it should resend to that endpoint if it has been sent to it previously

surreal grail
#

I'm indicating the webhook endpoint ID by this way:
stripe events resend evt_1SKdDUDyCiiQ0txVT92rJhzH --webhook-endpoint=we_1IgSRbDyCiiQ0txVcQepuORc --live

faint beacon
#

this is correct

surreal grail
#

But I think the problem is that this event wasn't sent to this endpoint ID originally?

#

And then I cannot modify the endpoint at this point?

faint beacon
#

the webhook event is failing now on the correct endpoint with this failure message:
"Cannot create an invoice for non existent account"

surreal grail
#

Oh, maybe the retry has generated a new Event ID?

faint beacon
#

no it's the same event ID

surreal grail
#

I cannot find this error, and any new event inside the Invoice in_1SKdDRDyCiiQ0txVpkotbqZN

faint beacon
#

the error I shared is what your code responded to our request