stripe-node
stripe-node copied to clipboard
StripeAPIError: Invalid JSON received from the Stripe API
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 Thanks for the report, we'll look into it and see if we can improve the error handling!