Open kimia000 opened 5 years ago
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);
}
})();
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))
Same problem here can someone help us pls ?
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"
Is it still relevant ? If not can you close this issue please ?
still relevant
I try to simply log in as
but it returns the error: