在LinkedIn连接API随机内部服务出错 [英] Random Internal Service Error on Linkedin Connection API

查看:203
本文介绍了在LinkedIn连接API随机内部服务出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我在计算器上的第一个问题,但它始终是一个答案非常有用的信息来源。所以,我希望有人 - 希望从LinkedIn的工程师队伍,因为我是通过LinkedIn支持重定向到这里 - 将能够帮助我。我找不到任何答案,在网络上的主体(微博,其他StackOverflow的问题,和其他论坛)。

因此​​,这里的问题是:我一直在使用LinkedIn的API两年了,以显示我们的用户他/她的LinkedIn连接,到目前为止,我从来没有与由简单LinkedIn生成以下请求的任何问题PHP库:

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

不过从昨天起,LinkedIn开始向部分用户一个奇怪的错误。

 &LT;错误&GT;
 &LT;状态&gt; 500℃; /状态&gt;
 &LT;&时间戳GT; 1424451457253&LT; /时间戳&GT;
 &lt;请求-ID&GT; HISKBDLSOA&LT; /请求-ID&GT;
 &LT;无差错code&GT; 0℃; /无差错code&GT;
 &LT;&消息GT;内部服务出错&LT; /消息&GT;
&LT; /错误&GT;

错误确实是随机的,所以真的很难重现。
我们越来越多的用户得到的错误,它开始变得对我们的应用是至关重要的。

我读过类似的<一个href=\"http://stackoverflow.com/questions/26100042/internal-service-error-on-linkedin-using-the-share-api\">thread关于共享API 而不是连接API?有没有人已经有一个错误,也许发现了一个解决办法,甚至更好的真正解决方案?

在此先感谢任何人谁可以给我约是怎么回事的解释,甚至开始。


解决方案

我把它通过减少接触我从500到250,每次请求的数量再次合作,做多轮,直到我得到的所有联系人。

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

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..

解决方案

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

这篇关于在LinkedIn连接API随机内部服务出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆