#chris4q - webhook resend

1 messages · Page 1 of 1 (latest)

fervent chasm
#

Well okay so let's step back first. This is a webhook on a connected account?

upper mango
#

Yep

#

So, I go to the Stripe dashboard, go to the connected account, click "View Dashboard as <<Company Name>>" which launches a dashboard as the connected account. I then go over to Developers -> Events, find the event with a pending webhook. Click in for details and see the failed webhook requests under Webhook Attempts with "Resend" buttons next to them. When I click on any of the "Resend" buttons, I get that error.

fervent chasm
#

Well it seems that you cannot resend webhooks. My guess is we don't want the connected account's servers doing things in response to resends they didn't trigger.

upper mango
#

Actually, I was just able to resend the webhook via the Stripe CLI

#

Maybe it's a bug in the dashboard?

#

I was able to send a command of the format stripe events resend evt_XXXXX --account=acct_XXXXXX --webhook-endpoint=we_XXXXX

#

And the successful webhook shows up under "Webhook Attempts" (what I would have expected if I'd pressed the button)

fervent chasm
#

That is odd. Also you weren't trying to configure the webhook but simply resend it, correct?

upper mango
#

Yeah, simply hitting the resend button. It hits the /v1/events/evt_XXXXX/retry endpoint that returns a 400 with that error message.

fervent chasm
#

Do you happen to have a request ID?

upper mango
#

The error response doesn't have a request id on it. Only the error message {"error":{"message":"You are not permitted to configure webhook endpoints on a connected account. Did you mean to create a Connect webhook on your account instead?","message_code":"webhook_endpoint_connected_configuration_not_allowed","type":"invalid_request_error"}} ... and I can't find any record of it in the logs on either the connected or master account.
I can provide you with the event id. It's evt_1KJQiIDUGCx9B9omu2YBbqDr

#

I can provide you with the successful request id through the CLI ... req_7eyjBJAmvDmlA1

fervent chasm
#

Hi unfortunately I need to step away but my esteemed colleague @analog crystal will be able to answer your questions.

upper mango
#

Cool. No worries. Hey @analog crystal. I can use the CLI, but getting the dashboard working would be ideal for others who need to re-run webhooks, in the future, in our connected accounts. My goal is to find out if this is indeed a dashboard bug, and if so, if there can be an internal ticket filed to get it on somebody's radar.

analog crystal
#

heya! give me a bit to catch up on things

upper mango
#

Aha. That does work. So, it's just broken functionality in the connected account dashboard, I guess.

analog crystal
#

to kind of elaborate on what snufkin said, you're not really meant to be able to resend the event from a connected account to your platform webhook in the way that you first attempted 😅 . I definitely agree that us displaying that page makes it seem like it's possible and is very confusing though. I'll pass on the feedback