Skip to content

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

Open
@staleks

Description

@staleks

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions