简体   繁体   English

为什么突然出现403错误?

[英]Why does a 403 error suddenly occurs?

I'm using Spring Social to get some informations via the LinkedIn API. 我正在使用Spring Social通过LinkedIn API获取一些信息。 Everything works fine : I can connect to my application using LinkedIn, I can recover some granted informations about my connections... However, sometimes, I can't access anymore to LinkedIn and get this error : 一切正常:我可以使用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

According to the error message, I'm not authorized to get the required informations (despite the fact that one minute before, I could access them). 根据错误消息,我无权获得所需的信息(尽管前一分钟我可以访问它们)。

Any ideas why ? 有什么想法吗?

It seems that either your session token is getting expired or you're probably running into throttle limits. 似乎您的会话令牌即将过期,或者您可能即将遇到限制。 A session token is valid for some duration, you may need to check logs and see whether you are getting something like 会话令牌在一段时间内有效,您可能需要检查日志并查看是否收到类似

"Your session has expired and the post data is lost. Please re-authenticate and re-post the data" “您的会话已过期,发布数据丢失。请重新验证并重新发布数据”

Also check about throttle limits here: https://developer-programs.linkedin.com/documents/throttle-limits 还可以在此处检查有关油门限制的信息: https : //developer-programs.linkedin.com/documents/throttle-limits

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM