检索Linkedin用户信息

编程入门 行业动态 更新时间:2024-10-12 08:15:57
本文介绍了检索Linkedin用户信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我目前正在开发NodeJS应用,并打算检索Linkedin用户的经验,知识和技能.这样做时,我得到下面的错误.如何避免此错误?

I’m currently developing a NodeJS App and am intending to retrieve Linkedin user’s experience, education and skills. When doing so I get the error below. How can I avoid this error?

此处导致错误的工作流程如下: 3.14.113.64:4000/

Here the workflow followed that leads to the error: 3.14.113.64:4000/

InternalOAuthError: failed to fetch user profile at _oauth2.get (/linkedin-connection/node_modules/passport-linkedin-oauth2/lib/oauth2.js:70:23) at passBackControl (/linkedin-connection/node_modules/oauth/lib/oauth2.js:132:9) at IncomingMessage.<anonymous> (/linkedin-connection/node_modules/oauth/lib/oauth2.js:157:7) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9)

推荐答案

看起来像是此库的已知问题: github/auth0/passport-linkedin-oauth2/issues/75

Looks like this is a known issue of this library: github/auth0/passport-linkedin-oauth2/issues/75

此问题未报告此模块尚未更新为linkedin API 2.0

this module that has not been updated to linkedin API 2.0 as reported in this issue

将其切换为分叉:

npm install @sokratis/passport-linkedin-oauth2

并替换require/import语句:

And replace the require / import statement:

var LinkedInStrategy = require('@sokratis/passport-linkedin-oauth2').Strategy;

更多推荐

检索Linkedin用户信息

本文发布于:2023-11-06 08:27:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1563188.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:用户信息   Linkedin

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!