#soma-retrieve-account

1 messages · Page 1 of 1 (latest)

dire kelp
#

can you send a screenshot of the command (minus any API keys) and the specific response error?

cunning jay
#

hey two-shoes thanks for responding. I'm using nodejs:

#

const retrieveAccount = async (account_id) => {
try {
const account = await stripe.accounts.retrieve(account_id);
return account;
} catch (e) {
return { error: true, message: e.message };
}
};.

dire kelp
#

And what is the specific error you're getting back?

cunning jay
#

no error

dire kelp
#

So it's saying there's a 500 internal server error, but it's giving you back a success response in the request body?

cunning jay
#

right

dire kelp
#

That's really weird

#

I'm not very familiar with postman. Is that happening when you run the request via local env as well?

cunning jay
#

yes

#

even running a curl