Coder Social home page Coder Social logo

Problem in simple login about instagram-web-api HOT 6 OPEN

jlobos avatar jlobos commented on May 20, 2024
Problem in simple login

from instagram-web-api.

Comments (6)

gutosanches avatar gutosanches commented on May 20, 2024 1

Looks like the package is outdated in npm. I fixed that by installing the package using the master branch putting this in my package.json:
"instagram-web-api": "https://github.com/jlobos/instagram-web-api.git"

from instagram-web-api.

franzsilva avatar franzsilva commented on May 20, 2024

I would place the code inside a try catch. so you can catch any errors returned.

const Instagram = require('instagram-web-api');
const client = new Instagram({ username: 'XX', password: 'YY' });

(async () => {
    try {
        await client.login();
        const profile = await client.getProfile();
        console.log("Profile:", profile);
    } catch (error) {
        console.log("Error:", error);
    }

})();

from instagram-web-api.

TheRTK avatar TheRTK commented on May 20, 2024

I have same problem!

Instagram does not send header "set-cookie".

instagram-web-api/lib/index.js:55:46
.then(res => res.headers['set-cookie'].map(Cookie.parse))

from instagram-web-api.

Aljal avatar Aljal commented on May 20, 2024

Same problem here can someone help us pls ?

from instagram-web-api.

MonsieurBibo avatar MonsieurBibo commented on May 20, 2024

Is it still relevant ? If not can you close this issue please ?

from instagram-web-api.

ruskid avatar ruskid commented on May 20, 2024

still relevant

from instagram-web-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.