question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error retrieving access token: Error: invalid_grant

See original GitHub issue

I’m getting an odd error when trying to call clasp login. I’m successfully logged in and redirected but clasp is claiming an invalid token. I’ve also tried a few different accounts.

Steps to Reproduce the Problem

  1. clasp login
  2. allow the right account
  3. login successful return to terminal.
  4. Error retrieving access token: Error: invalid_grant

Specifications

  • Node version: 8.9.2
  • Version (npm list | grep clasp):

⟩ npm list -g | grep clasp ├─┬ @google/clasp@1.1.0

  • OS mac

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
grantcommented, Feb 24, 2018

@froggr looking into it, in the meantime please install npm i -g @google/clasp@1.1.1.

1reaction
grantcommented, Feb 3, 2018

Thanks for letting me know @csell5. 1.1.1 should fix this.

Install the latest clasp and it should work now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

invalid_grant trying to get oAuth token from google
RFC 6749 OAuth 2.0 defined invalid_grant as: The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh ...
Read more >
Google OAuth “invalid_grant” nightmare — and how to fix it
1) Server clock/time is out of sync · 2) Not authorized for offline access · 3) Throttled by Google · 4) Using expired...
Read more >
How to interpret and resolve the "Invalid Grant" error for ...
THE "INVALID GRANT" ERROR MAY BE RETURNED FOR THE FOLLOWING REASONS · The user has revoked your access. · The refresh token has...
Read more >
"invalid_grant" error when requesting an OAuth Token
Issue symptoms. When I attempt to obtain an access token, I receive the error below. {"error":"invalid_grant",
Read more >
{'error': 'invalid_grant', 'error_description': 'Bad Request'}
Hi Diana, Thank you for reaching out. The "invalid_grant" error usually indicates that the access or refresh token being passed in your request...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found