Skip to content

Getting a CHALLENGE when logging in #8

@dr-robert-li

Description

@dr-robert-li

Appears to be resolved when modifying the client to use the most recent user agent:

    REQUEST_HEADERS = {
        "user-agent": " ".join(
            [
                "Mozilla/5.0 (Macintosh; Intel Mac OS X 15_1_1)",
                "AppleWebKit/537.36 (KHTML, like Gecko)",
                "Chrome/131.0.6778.205 Safari/537.36",
            ]
        ),
        # "accept": "application/vnd.linkedin.normalized+json+2.1",
        "accept-language": "en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7",
        "x-li-lang": "en_US",
        "x-restli-protocol-version": "2.0.0",
        # "x-li-track": '{"clientVersion":"1.2.6216","osName":"web","timezoneOffset":10,"deviceFormFactor":"DESKTOP","mpName":"voyager-web"}',

Perhaps it can be recommended that the user agent be dynamically generated from an API request to this end point making sure to parse for the latest version of Chrome: https://deviceandbrowserinfo.com/api/user_agents/humans

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions