Instagram-private-api: Login does not work anymore!

Created on 29 May 2018  路  1Comment  路  Source: dilame/instagram-private-api

Hello the app suddenly stopped working throws

{ [CookieNotValidError: Cookie `sessionid` you are searching found was either not found or not valid!]
  name: 'CookieNotValidError',
  message:
   'Cookie `sessionid` you are searching found was either not found or not valid!' }

When running node app.js is there any way to fix this issue?

The code am using that causes this error:

   const Client = require('instagram-private-api').V1;
    const device = new Client.Device('someuser');
    const storage = new Client.CookieFileStorage(__dirname + '/cookies/someuser.json');
    const session = await Client.Session.create(device, storage, 'username', 'passs');

Thank you!

Most helpful comment

Installing version from git helped solve this for me.

Just do npm i https://github.com/huttarichard/instagram-private-api.git --save

Author should push new version to npm...

>All comments

Installing version from git helped solve this for me.

Just do npm i https://github.com/huttarichard/instagram-private-api.git --save

Author should push new version to npm...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DenisKrsk picture DenisKrsk  路  33Comments

ambross picture ambross  路  10Comments

sagardalal21 picture sagardalal21  路  39Comments

theonlygusti picture theonlygusti  路  11Comments

zalkanorr picture zalkanorr  路  12Comments