LinkedIn API - Server 500 Error

谁说胖子不能爱 提交于 2019-12-11 01:55:00

问题


We are using the LinkedIn connections API to return a list of connections for a user. A specific user has over 2000 connections and we there have to use paging to return connections past 500.

On the third call where my paging is start=800 count=500 we now get a HTTP 500 error

The request is:

https://api.linkedin.com/v1/people/~/connections:(id,first-name,last-name,formatted-name,public-profile-url,picture-url::(original),headline,industry)?oauth2_access_token=**token**&format=json&start=800&count=500

The error return is:

{
 "errorCode": 0,
 "message": "Internal service error",
 "requestId": "2JBK4Q1PJV",
 "status": 500,
 "timestamp": 1424849048682
}

If I change the request to the previous point in the page (i.e. set start=300 and count=500 it works.

This issue has only started in the last few days and I have checked the throttling. It used to work before that.


回答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/28713494/linkedin-api-server-500-error

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