instastories-backup icon indicating copy to clipboard operation
instastories-backup copied to clipboard

400 Login Error

Open ghost opened this issue 7 years ago • 8 comments

After parsing the json I get this error. It does manage to rewrite usernames into ids.

ERROR: got 400 when fetching stories entries! Response: {"message": "login_required", "logout_reason": 2, "status": "fail"}

I entered the correct username and password but no cookie, since its (probably?) not needed because I don't use 2FA.

ghost avatar May 01 '18 10:05 ghost

This is the json I use.

{ "filesdir": "files", "dbfilename": "stories.sqlite3", "username": "xxxx", "password": "xxxx", "quiet": false, "ids": { "xxxx": "xxx", "xxxx": "xxx", "xxx": "xxx", "xxxx: "xxxx", "xx": "xxxx", }, "x-ig-capabilities": "36oD" }

Looked a bit more into x-ig-capabilities. Since the prefs.json got rewritten I think I don't need it anymore. Not using it doesn't help either.

ghost avatar May 01 '18 10:05 ghost

Replicated the issue. Unable to fix.

tomglynch avatar May 07 '18 13:05 tomglynch

Looks like IG changed the API for logging in over ajax. Will look into it.

ondrejsojka avatar May 08 '18 11:05 ondrejsojka

Thanks @tensojka

This may be relevant: https://stackoverflow.com/questions/49788905/what-is-the-new-instagram-json-endpoint

tomglynch avatar May 09 '18 05:05 tomglynch

is there still no fix yet ? I'm having this error as well.

lordzuqi avatar May 24 '18 14:05 lordzuqi

@lordzuqi no, still no fix yet. They totally removed the ajax login API and I haven't yet figured out what they replaced it with.

ondrejsojka avatar May 26 '18 09:05 ondrejsojka

Does the IG change impact both username/password and cookie authentication? I have been using cookie authentication for last several months without issue and suddenly last night I am no longer able to authenticate.

aboutte avatar Jun 06 '18 17:06 aboutte

@aboutte IG just blocked any automation access that required login, now it's hopeless

AndCycle avatar Jun 11 '18 09:06 AndCycle