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.

Failed to fetch user profile

See original GitHub issue
this._oauth2.get('https://api.instagram.com/v1/users/self', accessToken, function (err, body, res) {
if (err) { return done(new InternalOAuthError('failed to fetch user profile', err));

Getting this error from last 2 days, is it instagram end issue?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
rafipiccolocommented, Feb 11, 2020

the url is not valid anymore… plus it doesnt return so much data now…

i corrected it with :

this._oauth2.get('https://graph.instagram.com/me?fields=id,username', accessToken, function (err, body, res) {
    
    if (err) { return done(new InternalOAuthError('failed to fetch user profile', err)); }
    
    try {
      var json = JSON.parse(body);
      
      var profile = { provider: 'instagram' };
      profile.id = json.id;
      profile.username = json.username;
     
      profile._raw = body;
      profile._json = json;
      
      done(null, profile);
    } catch(e) {
      done(e);
    }
  });
0reactions
Jashan66commented, Dec 29, 2022

the url is not valid anymore… plus it doesnt return so much data now…

i corrected it with :

this._oauth2.get('https://graph.instagram.com/me?fields=id,username', accessToken, function (err, body, res) {
    
    if (err) { return done(new InternalOAuthError('failed to fetch user profile', err)); }
    
    try {
      var json = JSON.parse(body);
      
      var profile = { provider: 'instagram' };
      profile.id = json.id;
      profile.username = json.username;
     
      profile._raw = body;
      profile._json = json;
      
      done(null, profile);
    } catch(e) {
      done(e);
    }
  });

does this code replace the passport instagram strategy code or is it add inside or apart from that code ? Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to fetch user profile NodeJs+passport-google-oAuth2 ...
When I try registering a user using Google+, I keep on getting this error message after failing to submit the request (InternalOAuthError: ...
Read more >
Error: failed to fetch user profile - Auth0 Community
Hello, I'm new to Auth0 and I am trying to implement Auth0 authentication. I am encountering an issue after I login.
Read more >
InternalOAuthError: failed to fetch user profile #24 - GitHub
If you don't want the full user profile, you can alternatively set options.skipUserProfile to true to prevent this error. 2
Read more >
internaloautherror: failed to fetch user profile - You.com
InternalOAuthError: Failed to fetch user profile is an error message that occurs when an application is attempting to authenticate a user with a...
Read more >
Oauth2 issue with passport-zendesk : Failed to fetch user profile
ERROR RuntimeError: Failed to fetch user profile err[name] InternalOAuthError err[message] Failed to fetch user profile err[oauthError] ...
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