Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StripeAPIError: Invalid JSON received from the Stripe API #954

Open
sera4am opened this issue Jul 14, 2020 · 1 comment
Open

StripeAPIError: Invalid JSON received from the Stripe API #954

sera4am opened this issue Jul 14, 2020 · 1 comment
Assignees
Labels

Comments

@sera4am
Copy link

sera4am commented Jul 14, 2020

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.

@remi-stripe
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants