#comegetsome_error
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1394800005679808565
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you share the request ID (req_xxx) of the error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
In my Stripe App, I am using the following approach to get the Stripe object.
import Stripe from 'stripe';
import { createHttpClient, STRIPE_API_KEY } from '@stripe/ui-extension-sdk/http_client';
const stripeClient = new Stripe(STRIPE_API_KEY, {
httpClient: createHttpClient(),
apiVersion: '2025-06-30.basil',
});
console.log("Calling accounts.list with params:", params);
const resp = await stripeClient.accounts.list(params);
console.log("accounts.list response:", resp);
What is your params?
This error usually means that your platfom is listing the connected accounts of your connected accounts, which is not allowed
That's what I understood too but I am not in connected account context
if I click on View as 'connected account name' user, then i get that error in Shell too
Could you share your platform ID (acct_123), so that I can look for the requests with this error?
sure. Its
acct_1EG7TwBENesAQTLZ (platform acc)
acct_1RhIfYJQoEUExGwO (connected acc)
Shall I send you the API request headers
params is just { limit = 100 }
Another friend told me to use
const stripe = await stripeApp.getStripe();
but I think that for backend use. I am in UI extensions SDK.
acounts/list
yes. its for platform use
but that error comes if you call it from connected account context
so something is making my platform context look like connected account context.
i can share the app with you if you want to try it
I'm able to find same error in the Dashboard request: https://dashboard.stripe.com/test/logs/req_mdfCBwEjG9pDIe
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Looking into it now
yeah but that's not my app. That's when i switch to connected account user and tried 'stripe accounts list' on shell, which generated this
i dont see my errors getting in Log
Why are you attempt to view the connected accounts on your connected account using View as 'connected account name'?
Did you add stripeAccount header somewhere in your code?
This error is expected because you're viewing connected account's connected account using platform access
Could you share what you're trying to do here?
Why are you listing the accounts?
Is this chat private?
This chat is public
Yeah we are building a Stripe App which will pull connected accounts of the platform and do something with it
The user of the App is platform operators/admins
not end merchants / connected accounts
I think if I send you the app you can see exactly whats going on
Hello, my colleague has to step away so i'll be stepping in to assist. Just trying to get caught up.
Sorry, just trying to read through everything.
Its late for me Mossy. I'll be available tomorrow and will ping you.
It seems to me that there is a bug in Stripe's UI Extension SDK which isn't detecting the right context for the Stripe APIs. There may be some clues in the API headers that are determining wrongly that this is a connected account.
Sounds good, were always here on weekdays 🙂 I'll poke around and ask some of my team who have the most familiarity with the UI Extension SDK.