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.

Authorization error

See original GitHub issue

I’m getting an error with OAuth 2.0 when Passport is trying to fetch the user profile.

500 failed to fetch user profile (status: 401 data: { "error": { "errors": [ { "domain": "global", "reason": "authError", "message": "Invalid Credentials", "locationType": "header", "location": "Authorization" } ], "code": 401, "message": "Invalid Credentials" } } )

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
olalondecommented, Nov 17, 2012

Fixed this by specifying the following scope:

{ scope: 'https://www.google.com/m8/feeds https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile'}

It would be good if this module automatically appended the https://www.googleapis.com/auth/userinfo.profile scope since it always needs it for profile.

0reactions
csehydrogencommented, Jun 23, 2015

Thank you very much! You saved my whole day 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authorization Errors | Device Access - Google Developers
During the authorization process, Google OAuth may return an error. Use this guide to troubleshoot the most common errors during this ...
Read more >
Authorization Error - TIBCO Product Documentation
The authorization server returns an error response if the request processing fails. The processing of the request fails due to one of the...
Read more >
Google Authorization Error - [Solved]
How to resolve the Google Authorization Error that occurs when opening Workspace Add-ons while logged into multiple Google Accounts.
Read more >
How Do I Fix 403 Authorization Error? - Pearl Lemon Web
The status code 403 (Forbidden) indicates that the server understands the request but refuses to allow it. If the server receives authentication ......
Read more >
Authorization errors - IBM
These errors relate to service account authorization. Authorization issues commonly occur when required permissions are not provided to the service account or ...
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