Skip to content

Error: Request failed with status code 401 #503

Description

@FujiwaraChoki

I always receive this error, no matter what I try, my login credentials are correct though...

Code:

const username = process.env.NEXT_PUBLIC_LINKEDIN_USERNAME;
const password = process.env.NEXT_PUBLIC_LINKEDIN_PASSWORD;

const client = new Client();
await client.login.userPass({ username: username, password: password });

const jobsScroller = await client.search.searchJobs({
    keywords: 'React',
    filters: { location: 'Switzerland' },
    limit: 20,
    skip: 5,
});

const [someReactJobHit] = await jobsScroller.scrollNext();

console.log(someReactJobHit);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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