当前,使用public-profile-url调用连接api导致内部服务器错误 [英] Currently, calling the connections api with the public-profile-url is causing an internal server error
问题描述
当前(但不是通常),如果调用以下URL,则会收到内部服务器错误:
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
删除public-profile-url并调用以下URL,它可以工作:
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
为什么?
推荐答案
他们似乎减少了您每次请求时可获得的联系数量.我曾经问过500,它工作了很长时间,然后上周它停止工作,而是返回:
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>
现在,我每次请求250个联系人,然后它又可以正常工作.
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
这篇关于当前,使用public-profile-url调用连接api导致内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!