#wentaozhou
1 messages · Page 1 of 1 (latest)
Hello! What request/code is given you that error?
I'm not sure. The error does not tell me which function it's calling. and it does not happen every time when I going through the same process. it's just that sometimes it shows up, and sometimes it does not. I'm using stripe api in multiple places in the backend so hard to tell. sorry.
Are you working with connect accounts at all?
yea I have a stripe account
Sorry let me clarify - are you working with Connect (so do you create additional connected accounts that connect to your platform?
yea I do
That's probably the issue - for accounts created in livemode, there are some requests that can only be done in live mode. I think requests like adding an external account can only be done in live mode for real connect accounts
oh thanks. so do I resolve the error by removing the connected account?
Well it depends on what you're trying to do - is this code meant to only be used in test mode? Or is this the same code you use in live mode?
yes it's the same code
Gotcha - and do you have any protections to make sure that you're only calling things in livemode for livemode accounts and testmode for test mode accounts?
I don't believe so. maybe I should add that?
Yeah, I'd definitely recommend that as a starting point
can you share me docs to reference?