Comments (4)
Made some progress on this issue, the proxy setting was causing the issue, made
changes to include "https.proxyHost" and "https.proxyPort" now the example is
able to go further but still throwing exceptions as below
Fetching request token from LinkedIn...
Request token: 69ae115e-0da9-4b00-bd8d-79e9a11c9da0
Token secret: af7b3b0d-749e-4f5e-b6d4-a16864c059eb
Expiration time: Wed Jun 23 09:33:07 IST 2010
Now visit:
https://www.linkedin.com/uas/oauth/authorize?oauth_token=69ae115e-0da9-4b00-bd8d
-79e9a11c9da0
... and grant this app authorization
Enter the PIN code and hit ENTER when you're done:
<Entered the pin obtained>
Fetching access token from LinkedIn...
Access token: 470dbafc-eecd-4ae5-aef2-543cd9ee974e
Token secret: 38fef827-669d-48d5-9c5a-f42c0c2b6871
Fetching profile for current user.
com.google.code.linkedinapi.client.LinkedInApiClientException:
java.net.ConnectException: Connection timed out: connect
at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.callApiMethod(BaseLinkedInApiClient.java:1251)
at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.callApiMethod(BaseLinkedInApiClient.java:1189)
at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.getProfileForCurrentUser(BaseLinkedInApiClient.java:789)
at com.google.code.linkedinapi.client.examples.OAuthAuthenticationExample.processCommandLine(OAuthAuthenticationExample.java:108)
at com.google.code.linkedinapi.client.examples.OAuthAuthenticationExample.main(OAuthAuthenticationExample.java:60)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:525)
at java.net.Socket.connect(Socket.java:475)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.callApiMethod(BaseLinkedInApiClient.java:1238)
... 4 more
Original comment by [email protected]
on 23 Jun 2010 at 4:38
from linkedin-j.
Hi Vinay.
You will also have to include "http.proxyHost" and "http.proxyPort" (note http
instead of https). This is because while authentication uses https , other apis
use http. Let me know if you still run into issues.
Regards
Nabeel Mukhtar
Original comment by nabeelmukhtar
on 24 Jun 2010 at 6:08
from linkedin-j.
Hi Nabeel,
Thank you very much that solved my problem.
Regards
-Vinay
Original comment by [email protected]
on 24 Jun 2010 at 6:12
from linkedin-j.
Original comment by nabeelmukhtar
on 24 Jun 2010 at 3:00
- Changed state: Fixed
from linkedin-j.
Related Issues (20)
- Use of getConnectionsByUrl - permissions problem
- Sometimes invitations via email are not sent
- getConnections APIs personList is empty
- Can't get public-profile-url from a group post's creator
- Set modified by PeopleApiClient.getConnectionsById(String, Set<ProfileField>, int, int)
- NullPointerException when post to LinkedIn Group requires moderation HOT 1
- SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container com.google.code.linkedinapi.client.LinkedInApiClientException: [unauthorized]. HOT 1
- Posting Shares Working fine but shows extra content in share
- Get Updates of Company HOT 2
- seach company and group
- Not getting the skills of current users.
- getConnection() method is returning null always for all the profile.
- postShare in group
- Register your OAuth 2 redirect URLs
- Class not found exception for LinkedInApiJaxbClient. HOT 3
- linkedin user email
- Internal Server Error While getting JobSuggesions from Linkedin using API
- OAuth: HTTP 401 Status when trying to get access token to LinkedIn HOT 1
- how to get the connection automatic HOT 2
- Llinkedin:Invalid redirect URI error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linkedin-j.