我正在使用Spring Social通过LinkedIn API获取一些信息。一切正常:我可以使用LinkedIn连接到我的应用程序,我可以恢复一些有关我的连接的授权信息... 但是,有时候,我无法再访问LinkedIn并收到此错误:
16:28:00,741 WARN [RestTemplate] GET request for "https://api.linkedin.com/v1/people/id=FNXqbb779g:(id,first-name,last-name,headline,location,industry,distance,relation-to-viewer,current-share,num-connections,num-connections-capped,summary,specialties,proposal-comments,associations,honors,interests,positions,publications,patents,languages,skills,certifications,educations,three-current-positions,three-past-positions,num-recommenders,recommendations-received,phone-numbers,im-accounts,twitter-accounts,date-of-birth,main-address,member-url-resources,picture-url,site-standard-profile-request:(url),api-public-profile-request:(url),site-public-profile-request:(url),api-standard-profile-request,public-profile-url)?format=json" resulted in 403 (Forbidden); invoking error handler
根据错误消息,我无权获得所需信息(尽管事先一分钟,我可以访问它们)。
任何想法为什么?
答案 0 :(得分:0)
您的会话令牌似乎已过期,或者您可能遇到了限制。会话令牌在一段时间内有效,您可能需要检查日志并查看是否有类似
的内容“您的会话已过期且帖子数据已丢失。请 重新验证并重新发布数据“
此处还检查油门限制: https://developer-programs.linkedin.com/documents/throttle-limits