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!
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...
Most helpful comment
Installing version from git helped solve this for me.
Just do
npm i https://github.com/huttarichard/instagram-private-api.git --saveAuthor should push new version to npm...