alfdev / linkedin-j

Automatically exported from code.google.com/p/linkedin-j
0 stars 0 forks source link

LinkedIn throttle, limit exceeded #85

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Exceed the limit of searches the linkedin api imposes.

What is the expected output? What do you see instead?
I get ...
Exception in thread "main" 
com.google.code.linkedinapi.client.LinkedInApiClientException: 
javax.xml.bind.UnmarshalException: unexpected element (uri:"", 
local:"request-id"). Expected elements are 
<{}timestamp>,<{}message>,<{}status>,<{}error-code>
    at com.google.code.linkedinapi.client.impl.LinkedInApiJaxbClient.unmarshallObject(LinkedInApiJaxbClient.java:74)
    at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.readResponse(BaseLinkedInApiClient.java:1936)
    at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.callApiMethod(BaseLinkedInApiClient.java:2005)
    at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.callApiMethod(BaseLinkedInApiClient.java:1953)
    at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.searchPeople(BaseLinkedInApiClient.java:1556)

When calling client.searchPeople(..) with the same client obtained too many 
times (I think more that 300 is enough to get this)
I need a way to understand the error is due to the limit exceeded.

What version of the product are you using? On what operating system? 
linkedin-j-1.0.3, ubuntu

Please provide any additional information below.
linkedin-j-core and linkedin-j-schema in classpath

Original issue reported on code.google.com by desi.hri...@gmail.com on 28 Nov 2011 at 3:03