#tahmass-dev_error
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1255439886681505843
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Could you please share more details about the error ?
Sure. At first webhook was delivering events successfully but it was failing due to another reason. (I was not sending response status of 200 back). It was retrying multiple time but now retries are exhausted. And now if I am making any calls for that connected account. e.g const webhookEndpoints = await stripe.webhookEndpoints.list(
{ limit: 100 },
{ stripeAccount: "SOME_EXAMPLE_ACCOUNT" }
);. it says StripePermissionError: This application does not have the required permissions for this endpoint on account 'acct_1Lhg0AINQkxthFBH'
Can you share the eventId ?
This is the eventId evt_3PUVsVINQkxthFBH16fsI314 on which I got this error (StripePermissionError: This application does not have the required permissions for this endpoint on account 'xxx').
This is the webhook on which I got the error
https://us-central1-infq-short-code-generator.cloudfunctions.net/tenantDonationPaymentWebhookProcessNew
Ok I see only
Internal Server Error returned from your webhook endpoint
(StripePermissionError: This application does not have the required permissions for this endpoint on account 'xxx').
You are getting this error from what action exactly ? Stripe API call? is there a requestId ?
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
No. On this webhook there is Internal server https://us-central1-essentials-first-production.cloudfunctions.net/paymentFunctions-invoicePaidAndFailedCheck
What you mean by no? Stripe has no control over that endpoint, you are the maintainer/owner of it. So you need to debug it and find what is causing the internal server error
That's why I'm asking for more details about what is throwing this error message in your integration: StripePermissionError: This application does not have the required permissions for this endpoint on account 'xxx').
Sure. For first endpoint named. This is the webhook on which I got the error
https://us-central1-infq-short-code-generator.cloudfunctions.net/tenantDonationPaymentWebhookProcessNew. I am listening to charge.succeeded event and in that event there is no request Id but there is idempotency_key which is in_1PUUwLINQkxthFBHEU5zNJ1h-initial_attempt-5f83032b4c5369a27. on That webhook I am calling
const invoice = await stripe.invoices.retrieve(charge.invoice, {
stripeAccount: event.account,
});
Also: This account is successfully onboarded and it has status complete. Its id is acct_1Lhg0AINQkxthFBH
Can you please help me?
const invoice = await stripe.invoices.retrieve(charge.invoice, {
stripeAccount: event.account,
});
Could you please share the requestId of the failure API call ?
okay. I just made a API call and got the error.
RequestId for this is: req_W7Y218STg0c4in
Did you get the error/reason/solution.
Thanks for the help in advance
ok you are trying to make an APi call from this platform account acct_1JzN2tBWN8C1qviI to this Connect Account acct_1Lhg0AINQkxthFBH which is a Standard Connected Account
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
So what's the solution? Do I need to convert them to express? I am using OAuth flow for onboarding.
e.g. const response = await stripe.oauth.token({
grant_type: "authorization_code",
code: code,
});
Hey @west bridge ๐
sorry I was catching up and I thought my colleague has already answered you
please give me a couple of minutes to take a look and I will be back shortly
Sure. Thanks in Advance
do you mind me asking why are you trying to list the webhook endpoints of your Standard Account?