akhil2909 / linkedin-j

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

Get Profile and Connections by URL throws bad request error. #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to access a profile on the connections of a user by url.

Instead of returning the profile or connections it throws the exception:
Caused by: java.io.IOException: Server returned HTTP response code: 400 for
URL:
http://api.linkedin.com/v1/people/url=http%3A%2F%2Fpk.linkedin.com%2Fin%2Fmonisi
qbal
    at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.jav
a:1241)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
    ... 4 more

This has also been posted on the LinkedIn API forum:
http://developer.linkedin.com/thread/1264

Original issue reported on code.google.com by nabeelmukhtar on 8 Dec 2009 at 11:52

GoogleCodeExporter commented 9 years ago

Original comment by nabeelmukhtar on 8 Dec 2009 at 11:53

GoogleCodeExporter commented 9 years ago
Turned out to be a non issue. I was providing a wrong url. The url must be in 
the
format http://www.linkedin.com/pub/[member-name/]x/y/z.

Original comment by nabeelmukhtar on 10 Dec 2009 at 3:53