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

Error: Request failed with status code 401 #503

Open
FujiwaraChoki opened this issue Sep 12, 2023 · 3 comments
Open

Error: Request failed with status code 401 #503

FujiwaraChoki opened this issue Sep 12, 2023 · 3 comments

Comments

@FujiwaraChoki
Copy link

FujiwaraChoki commented Sep 12, 2023

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);
@FujiwaraChoki
Copy link
Author

Hello?

@mayankagar360
Copy link

Same is happening to me

@wendelsantosd
Copy link

Same here.

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

3 participants