#wentaozhou
1 messages ยท Page 1 of 1 (latest)
๐
Sounds like you are trying to make Connect requests when you aren't connected to that account?
Can you tell me more about what you are trying to do?
sure. Actually my real problem is that when I use my old key, I got the error saying StripeInvalidRequestError: Only live keys can access this method.
at StripeError.generate
I never had this problem until yesterday and I'm trying to resolve it. the error would pop up randomly
Can you share the code that is triggering this error?
the error does not tell me which function is calling. and It pops up randomly, so I feel like it's not a specific function that causes the error
Is there a request ID associated with the error message?
Likely not... I think you are hitting some sort of validation at the frontend of our API
๐ค
requestId: 'req_5CAWZJVjepwFsC'
Ah perfect
Okay so you are trying to update the Payout schedule of a Connected Account here: https://dashboard.stripe.com/test/logs/req_5CAWZJVjepwFsC
As the error states, since this affects the live account settings of the account, you can only do this with a live key
okay thanks. so I can only use live key now even when I do local development?
If you are using a live Connected Account yes.
That Express Account you are attempting to update was created in livemode.
You should be able to update with your test key if you create the Connected Account in test mode
Because then that Connected Account can't be used in live mode
sorry I'm new to stripe. how do I know the account is in live mode or in test mode?
You mostly would need to track that on your end. It is based on the type of API key that you used to create it. You can also look at the account in your Dashboard to see whether the account is in live mode or test mode.
thanks for the help so far. do you know why the request is sent to that live account? is there a way to make it point to the test account?
That is the account you specified in the API request
Looks like you are using our Node SDK
So yeah, you pass the account ID you want in the update method: https://stripe.com/docs/api/accounts/update?lang=node
thanks! I switched to live key, and I got an error saying insufficient funds, is it because that balance is 0?
Can you give me the request ID for that error?
requestId: 'req_9rXxx5tKF5xxcL'
Okay this is a Transfer from your Platform to your Connected Account
You are trying to Transfer in live mode but don't have enough available balance in your Platform Account
just to make sure I got it. so my platform account is the account I signed in on stripe right?
Yes
thanks for the help!