Skip to content

err.toString returned from getToken will throw illegal access exception #382

@henryliu-git

Description

@henryliu-git

I accidentally set the wrong redirect url and when I call oauth2Client.getToken, I expect I can get some related error message like redirect_uri_mismatch.

But instead I got illegal access exception when I do console.log(err).

b6fcdf3

Maybe it is because setting err.type = body.error while body.error_description is empty in this case?

Metadata

Metadata

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions