Linkedin 连接 API 上的随机内部服务错误 [英] Random Internal Service Error on Linkedin Connection API

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

问题描述

这是我关于 StackOverflow 的第一个问题,但它一直是一个非常有用的答案来源.所以我希望有人 - 希望来自 Linkedin 工程师团队,因为我被 Linkedin 支持重定向到这里 - 能够帮助我.我在网络上找不到该主题的任何答案(Twitter、其他 StackOverflow 问题和其他论坛).

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

所以问题来了:我已经使用 Linkedin API 两年来向我们的用户显示他/她的 Linkedin 连接,到目前为止我从来没有遇到过由 simple-linkedin 生成的以下请求的任何问题php 库:

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

然而从昨天开始,Linkedin 开始向一些用户发送一个奇怪的错误.

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.

我读过一个类似的 线程关于 Share API 但不是关于连接 API?是否有人已经遇到过该错误,并且可能找到了解决方法甚至更好的真正解决方案?

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

推荐答案

通过将我每次请求的联系人数量从 500 减少到 250,我重新开始工作,并进行多轮直到我获得所有联系人.

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天全站免登陆