#tahmass-dev_error

1 messages ยท Page 1 of 1 (latest)

void tundraBOT
#

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

vapid phoenix
#

Could you please share more details about the error ?

sage wadi
#

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'

vapid phoenix
#

Can you share the eventId ?

sage wadi
#

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').

vapid phoenix
#

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 ?

sage wadi
vapid phoenix
#

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').

sage wadi
#

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?

vapid phoenix
#

const invoice = await stripe.invoices.retrieve(charge.invoice, {
stripeAccount: event.account,
});
Could you please share the requestId of the failure API call ?

sage wadi
#

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

void tundraBOT
vapid phoenix
#

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

west bridge
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

sage wadi
#

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

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

sage wadi
#

Sure. Thanks in Advance

west bridge
#

do you mind me asking why are you trying to list the webhook endpoints of your Standard Account?