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

RequestError: Error: getaddrinfo EAI_AGAIN www.instagram.com #282

Open
marco910 opened this issue Jan 25, 2022 · 0 comments
Open

RequestError: Error: getaddrinfo EAI_AGAIN www.instagram.com #282

marco910 opened this issue Jan 25, 2022 · 0 comments

Comments

@marco910
Copy link

I'm using this code in my React app:

  const client = new Instagram({
    username: process.env.IG_USERNAME,
    password: process.env.IG_PASSWORD,
  });
  try {
    await client.login();
  } catch (err) {
    console.log("Something went wrong while logging into Instagram", err);
  }

  const profile = await client.getProfile();

  console.log(profile);

After await client.login(); I'm getting this error:

RequestError: Error: getaddrinfo EAI_AGAIN www.instagram.com

How can I fix this?

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