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 400: invalid_scope

See original GitHub issue

Getting Error 400: invalid_scope when tried to authorize.

Steps to Reproduce the Problem

  1. Open cmd
  2. Type clasp login
  3. copy url and paste in browser
  4. hits to error

Specifications

  • Node version (node -v): 5.6.0
  • Version (clasp -v):1.5.3
  • OS (Mac/Linux/Windows):Windows

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

15reactions
grantcommented, Sep 1, 2018

Hi all, It looks like there’s an outage with StackDriver causing the error. I’m trying to have the team fix it.

If you want to temporarily fix login until that problem is resolved, follow these instructions:

Open the file

/usr/local/lib/node_modules/@google/clasp/src/auth.js

(If that doesn’t work, your computer may have a different location. Try this to find the location: npm list -g | grep "clasp")

And comment out the line with a prefix of //:

https://www.googleapis.com/auth/logging.read

Update: Aug 31, 6:30pm PST The API team says that they will fix this issue Monday. 🙁

I’ll give updates here.

4reactions
phillshaffercommented, Aug 30, 2018

Just tried using Clasp for the first time today and got a similar error when attempting to login.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Error 400: invalid_scope" error when performing OAuth2 flow ...
I'm trying to use the Datastudio API to manipulate reports permissions in Datastudio. I have G Suite account registered and when I perform...
Read more >
Ask Question - Stack Overflow
Error 400 : invalid_scope "https://www.googleapis.com/auth/chat.bot" · Ask Question. Asked 4 years, 9 months ago. Modified 1 year ago. Viewed 9k times.
Read more >
Authorization Error 400: invalid_scope - Google Groups
Basically, the cause is the oauth URL is too long for the browser to take from the command line but ok to be...
Read more >
Erreur 400 : invalid_scope via OAuth - Issue Tracker - Google
When trying to get access to Keep API for an account, an auhtorization error is thrown because the scope is not valid **Problem...
Read more >
Authorization Error Error 400: invalid_scope #1358 - GitHub
Hi Team, We getting below error while configuring the GAM 6.0. Please check or suggest. Authorization Error Error 400: invalid_scope Some ...
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