#wentaozhou

1 messages ยท Page 1 of 1 (latest)

forest fjordBOT
deep shard
#

๐Ÿ‘‹

#

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?

bright flame
#

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

deep shard
#

Can you share the code that is triggering this error?

bright flame
#

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

deep shard
#

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

#

๐Ÿค”

bright flame
#

requestId: 'req_5CAWZJVjepwFsC'

deep shard
#

Ah perfect

#

As the error states, since this affects the live account settings of the account, you can only do this with a live key

bright flame
#

okay thanks. so I can only use live key now even when I do local development?

deep shard
#

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

bright flame
#

sorry I'm new to stripe. how do I know the account is in live mode or in test mode?

deep shard
#

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.

bright flame
#

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?

deep shard
#

That is the account you specified in the API request

#

Looks like you are using our Node SDK

bright flame
#

thanks! I switched to live key, and I got an error saying insufficient funds, is it because that balance is 0?

deep shard
#

Can you give me the request ID for that error?

bright flame
#

requestId: 'req_9rXxx5tKF5xxcL'

deep shard
#

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

bright flame
#

just to make sure I got it. so my platform account is the account I signed in on stripe right?

deep shard
#

Yes

bright flame
#

thanks for the help!