Random Internal Service Error on Linkedin Connection API

孤街醉人 提交于 2019-12-10 21:57:17

问题


This is my very first question on StackOverflow, but it's always been a very useful source for answers. So I hope someone - hopefully from the Linkedin engineer team as I was redirected here by Linkedin support - will be able to help me. I couldn't find any answer to that subject on the web (Twitter, other StackOverflow questions, and other forums).

So here is the problem : I've been using Linkedin API for two years now to display our users his/her Linkedin connections, and so far I've never had any problem with the following request generated by the simple-linkedin php library :

https://api.linkedin.com/v1/people/~/connections:(id,first-name,last-name,picture-url,public-profile-url,headline,location:(name))?start=0&count=500

Yet since yesterday, Linkedin started sending to some users a strange error.

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

The error is really random, so it is really hard to reproduce. More and more of our users get the error and it is starting to get critical for our app.

I've read a similar thread regarding the Share API but not about the Connection API? Did anyone already have that error and maybe found a workaround or even better a real solution?

Thanks in advance to anyone who could give me even the beginning of an explanation about what is going on..


回答1:


I got it working again by reducing the number of contacts I am requesting each time from 500 to 250, and do multiple rounds until I get all the contacts.

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


来源:https://stackoverflow.com/questions/28635988/random-internal-service-error-on-linkedin-connection-api

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