-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InternalOAuthError: failed to fetch user profile (new Community Management API of LinkedIn) #102
Comments
facing same issue, seems like the new major change on linkedin API break everything. and their current doc its not clear |
Having the same problem here |
@ErcilioMarques @herquiloidehele Do you guys have the problem just with the basic readme config? I dont understand why it fails because this library has been updated just a month ago to use the new OpenID API from linkedin. Edit: Ok it seems that they havent updated it to npm so its still installing the old API... I have emailed @jamescgarrett about it so he will probably fix it soon. For now, you can just install it manually via npm:
And the code just works perfectly!!! |
Hey all, apologies for the issues you are running into. As you are aware LinkedIn has deprecated |
Hi @jamescgarrett, Thanks! |
Hi,
|
Hello @jamescgarrett 😄 Hope all is going well. Will the newer versions be published to npm? |
@jamescgarrett why not publish this to npm ? |
plz do publish this to npm, to avoid these issues |
InternalOAuthError: failed to fetch user profile
at Strategy. (C:\VsCode\OfficeINK\OfficeInk-api\node_modules\passport-linkedin-oauth2\lib\oauth2.js:57:19)
at passBackControl (C:\VsCode\OfficeINK\OfficeInk-api\node_modules\oauth\lib\oauth2.js:132:9)
at IncomingMessage. (C:\VsCode\OfficeINK\OfficeInk-api\node_modules\oauth\lib\oauth2.js:157:7)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
I have been stuck in this error for 1 week, I googled about this error but couldn't get an updated solution according to new Community Management API of LinkedIn, Please help me @jamescgarrett .
The following is Passport linkedinStrategy configuration :
`require('dotenv').config();
const LinkedInStrategy = require("passport-linkedin-oauth2").Strategy;
const passport = require("passport");
passport.serializeUser((user, done) => {
done(null, user);
});
passport.use(
new LinkedInStrategy(
{
clientID: process.env.LINKEDIN_CLIENT_ID,
clientSecret: process.env.LINKEDIN_CLIENT_SECRET,
callbackURL: 'http://localhost:5000/auth/linkedin/callback',
scope: ['openid', 'profile', 'email'],
state: true,
);
passport.deserializeUser((user, done) => {
done(null, user);
});`
server running on localhost:5000,
Please help me, Its a lot to me.
Thanks ,
The text was updated successfully, but these errors were encountered: