Coder Social home page Coder Social logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024

Original comment by nabeelmukhtar on 24 Jun 2010 at 3:00

  • Changed state: Fixed

from linkedin-j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.