sumit269 / linkedin-j

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

Internal Server Error While getting JobSuggesions from Linkedin using API #147

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there,

I can able to get my profile details and connection details.. And also I can 
get access token,token secret but I could not able to get Job Suggestions. 
Kindly look at my code.. 

String verifier = intent.getData().getQueryParameter(
                    "oauth_verifier");

LinkedInAccessToken accessToken = oAuthService.getOAuthAccessToken(
                    liToken, verifier);

client = factory.createLinkedInApiClient(accessToken);

Person profile = client.getProfileForCurrentUser(EnumSet.of(    
ProfileField.ID, ProfileField.FIRST_NAME,ProfileField.LAST_NAME, 
ProfileField.HEADLINE,ProfileField.EMAIL_ADDRESS));

Jobs miJobSuggestions = client.getJobSuggestions(EnumSet.of(
        JobField.COMPANY_NAME, JobField.SALARY, JobField.POSITION,
        JobField.LOCATION_DESCRIPTION, JobField.SITE_JOB_URL,
        JobField.SKILLS_AND_EXPERIENCE));

While Executing client.getJobSuggestions(..) I got Internal API Server Error..  

My Error Log:  

com.google.code.linkedinapi.client.LinkedInApiClientException: Internal API 
server error
08-28 14:28:41.193: W/System.err(14274):    at 
com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.createLinkedInApiC
lientException(BaseLinkedInApiClient.java:3906)
08-28 14:28:41.194: W/System.err(14274):    at 
com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.callApiMethod(Base
LinkedInApiClient.java:3781)
08-28 14:28:41.194: W/System.err(14274):    at 
com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.callApiMethod(Base
LinkedInApiClient.java:3725)
08-28 14:28:41.194: W/System.err(14274):    at 
com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.getJobSuggestions(
BaseLinkedInApiClient.java:2043)

Kindly reply if you can get any solution..

Original issue reported on code.google.com by sivakumar.b@contus.in on 28 Aug 2014 at 9:03