Currently, calling the connections api with the public-profile-url is causing an internal server error

旧城冷巷雨未停 提交于 2020-01-10 04:05:29

问题


Currently (but not usually), if you call the following url you get an internal server error: https://api.linkedin.com/v1/people/~/connections:(id,headline,picture-url,summary,first-name,last-name,formatted-name,location:(name),industry,positions,num-connections,num-connections-capped,api-standard-profile-request:(url,headers),public-profile-url)?format=json

Remove the public-profile-url and call the following url, it works: https://api.linkedin.com/v1/people/~/connections:(id,headline,picture-url,summary,first-name,last-name,formatted-name,location:(name),industry,positions,num-connections,num-connections-capped,api-standard-profile-request:(url,headers))?format=json

Why?


回答1:


They seemed to have reduced the number of contacts you can get each time you request them. I used to ask for 500 and it worked for a long time, and then last week it stopped working and instead would return:

 <status>500</status>
 <timestamp>1424451457253</timestamp>
 <request-id>HISKBDLSOA</request-id>
 <error-code>0</error-code>
 <message>Internal service error</message>

Now, I request 250 contacts each time and it works again.

https://api.linkedin.com/v1/people/~/connections:(public-profile-url)?start=0&count=250&modified=updated


来源:https://stackoverflow.com/questions/28521988/currently-calling-the-connections-api-with-the-public-profile-url-is-causing-an

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!