M1n007 / node-insta-web-api

Simple, easy implementation of the Instagram private web API.
42 stars 17 forks source link

error when logging in #27

Open Syrup opened 1 year ago

Syrup commented 1 year ago

Error:

/root/bot/node_modules/node-insta-web-api/lib/index.js:149
            throw new Error(e)
                  ^

Error: Error: Login Failed, Please Try Again Later.
    at Instagram.login (/root/bot/node_modules/node-insta-web-api/lib/index.js:149:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async main (/root/bot/ninsta.js:5:3)

Node.js v19.1.0

My source code:

const Insta = require("node-insta-web-api")
const client = new Insta()

async function main() {
  await client.login("username", "password")

  console.log(await client.getProfileData())
}

main()

I have entered the username and password according to my Instagram account