Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you happen to get HTTP StatusCode 411 on 3-leg OAuth2 flow? #452

Open
staleks opened this issue Dec 12, 2024 · 0 comments
Open

Do you happen to get HTTP StatusCode 411 on 3-leg OAuth2 flow? #452

staleks opened this issue Dec 12, 2024 · 0 comments

Comments

@staleks
Copy link

staleks commented Dec 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant