stripe-node icon indicating copy to clipboard operation
stripe-node copied to clipboard

StripeAPIError: Invalid JSON received from the Stripe API

Open sera4am opened this issue 5 years ago • 1 comments

I try to execute stripe.oauth after create a Connect Account and at the Callback URL. However, the error I got back was "StripeAPIError: Invalid JSON received from the Stripe API" and I didn't know what was wrong.

So, the result of logging by writing console.log at the place where the error of line 183 in "StripeResource.js" which is the origin of the problem is caught.

Output is

{
  "error": "unsupported_grant_type"
}

Then, I did know parameter typo in my code at last. Should be returned raw message to the caller function as you know. Thanks.

sera4am avatar Jul 14 '20 09:07 sera4am

@sera4am Thanks for the report, we'll look into it and see if we can improve the error handling!

remi-stripe avatar Jul 14 '20 16:07 remi-stripe