Description
Hi,
I'm getting weird error after code is received and starting to request accessToken
com.echobox.api.linkedin.exception.LinkedInNetworkException: A network error occurred while trying to communicate with LinkedIn: LinkedIn request failed(HTTP status code 411) at com.echobox.api.linkedin.client.DefaultLinkedInClient.makeRequestAndProcessResponse(DefaultLinkedInClient.java:716) ~[ebx-linkedin-sdk-8.0.1.jar:na] at com.echobox.api.linkedin.client.DefaultLinkedInClient.makeRequestFull(DefaultLinkedInClient.java:581) ~[ebx-linkedin-sdk-8.0.1.jar:na] at com.echobox.api.linkedin.client.DefaultLinkedInClient.obtainUserAccessToken(DefaultLinkedInClient.java:420) ~[ebx-linkedin-sdk-8.0.1.jar:na]
Does it happen to anyone else using this library?
NOTE: If I Google a bit it is explained that there is missing Content-Length
header?
411 Length Required
This error indicates that the server refuses to accept the request without a defined Content-Length header. Please make sure >POST requests with an empty body have a Content-Length header specified.
Thank You