#MorenoMdz
1 messages ยท Page 1 of 1 (latest)
I am getting this error:
โฏ stripe events resend evt_1O26Ad2ZbhbzkwNFarWZb7xj --stripe-account acct_1NyHDN2ZbhbzkwNF
{
"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?",
"request_log_url": "https://dashboard.stripe.com/acct_1NyHDN2ZbhbzkwNF/test/logs/req_uQLfuSAaQgi1Lv?t=1698070226",
"type": "invalid_request_error"
}
}
with
stripe events resend evt_1O26Ad2ZbhbzkwNFarWZb7xj --stripe-account acct_1NyHDN2ZbhbzkwNF
Have you tried using the --account flag? https://stripe.com/docs/cli/events/resend#events_resend-account
With just --acount I get:
stripe events resend evt_1O26Ad2ZbhbzkwNFarWZb7xj --account acct_1NyHDN2ZbhbzkwNF
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such notification: 'evt_1O26Ad2ZbhbzkwNFarWZb7xj'; a similar object exists in live mode, but a test mode key was used to make this request.",
"param": "id",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_194U2hPCUQQ6ns?t=1698070341",
"type": "invalid_request_error"
}
}
oh I have the wrong key...
how do I change the key in the CLI?
trying to relogin
Hmm even with a new key and the --live tag it still doesnt let me
{
"error": {
"message": "The provided key 'rk_live_*********************************************************************************************Nyn79t' does not have the required permissions for this endpoint on account 'acct_1JHVgaJxJIrs34m7'. Please use a different key to perform this action.",
"request_log_url": "https://dashboard.stripe.com/logs/req_Gz20QE7d9CZhDa?t=1698070459",
"type": "invalid_request_error"
}
}
Hello ๐
What account are you logged into on Stripe CLI?
I wonder if you're logged in to your connected account instead ๐ค
ok progress, i edited the new key to have write access on all webhooks, but now I got this new error
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.
@fossil wraith yea I am logged in my account indeed
Are you able to list all the webhooks on your account?
https://stripe.com/docs/api/webhook_endpoints/list?lang=cli
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
one sec
yep
Should I just edit this one to support retrials?
"id": "we_1KQwZIJxJIrs34m7QwF7BGwn",
"object": "webhook_endpoint",
"api_version": null,
"application": "ca_JvPF5QJloAeQpJbc4Jth3tUk07SYp4eX",
"created": 1644337768,
"description": null,
"enabled_events": [
"payout.canceled",
"payout.created",
"payout.failed",
"payout.paid",
"payout.updated"
],
"livemode": true,
"metadata": {},
"status": "enabled",
"url": "hidden"
}
not sure what you mean by support retrials?
The enabled events dont have retrials
But the event type you're trying to resend is payout.created
What happens if you include the webhook endpoint ID when resending?
https://stripe.com/docs/cli/events/resend#events_resend-webhook-endpoint
also, when did the system start sending retryals automatically, from what I remember it would only retry on the next daily payout (9PM), this one retried at 5:45AM...
Adding the webhook endpoint I think worked
๐
checking our system now
Oh I found why the original payout event did not get saved in our system
retried payouts don't have the original transactions
is there a way for me from code to associate this to the original balance transactions?
are you looking at this event specifically?
https://dashboard.stripe.com/events/evt_1O26Ad2ZbhbzkwNFarWZb7xj
I see a balance transaction ID in the event body
This is what I see in the retried event
but that one is the "refund transaction" from the previous payout attempt.
basically on the 16th the automatically daily payout failed, then on the 17th at 5:45AM it tried again, the retrial has all the previous transactions in that one
so our system was not able to identify which granular transactions the original payout, from the 16th, had