#MorenoMdz

1 messages ยท Page 1 of 1 (latest)

crude wingBOT
regal canyon
#

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

languid zodiac
regal canyon
#

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

crude wingBOT
regal canyon
#

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"
  }
}
fossil wraith
#

Hello ๐Ÿ‘‹
What account are you logged into on Stripe CLI?
I wonder if you're logged in to your connected account instead ๐Ÿค”

regal canyon
#

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

fossil wraith
regal canyon
#

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"
    }
fossil wraith
#

not sure what you mean by support retrials?

regal canyon
#

The enabled events dont have retrials

fossil wraith
#

But the event type you're trying to resend is payout.created

regal canyon
#

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

fossil wraith
#

๐Ÿ‘

regal canyon
#

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?

fossil wraith
#

I see a balance transaction ID in the event body

#

This is what I see in the retried event

regal canyon
#

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