MrSwitch/hello.js

Instagram Login with Wrong Credentials

Open

#540 aberto em 13 de fev. de 2018

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (557 forks)batch import
help wanted

Métricas do repositório

Stars
 (4.630 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Logging in with wrong credentials returns a 404 page with error: HTTP/1.1 404 Not Found

Sorry, this page isn't available. The link you followed may be broken, or the page may have been removed. Go back to Instagram.

I would think that this error should be caught. This can be reproduced in the online demo.

Here's the HTTP request

POST https://www.instagram.com/accounts/login/?force_classic_login=&next=/oauth/authorize/%3Fclient_id%3Da3ab84f1ecd5476588fdf50b44fd60e6%26response_type%3Dtoken%26redirect_uri%3Dhttp%3A//mydomain/redirect.html%26display%3Dpage%26state%3D%257B%2522client_id%2522%3A%2522a3ab84f1ecd5476588fdf50b44fd60e6%2522%2C%2522network%2522%3A%2522instagram%2522%2C%2522display%2522%3A%2522page%2522%2C%2522callback%2522%3A%2522_hellojs_nprvib9%2522%2C%2522state%2522%3A%2522%2522%2C%2522redirect_uri%2522%3A%2522http%3A//mydomain/redirect.html%2522%2C%2522scope%2522%3A%2522public_content%2Cbasic%2522%2C%2522page_uri%2522%3A%2522http%3A//mydomain/%2522%257D%26scope%3Dpublic_content%2Bbasic HTTP/1.1
Host: www.instagram.com

csrfmiddlewaretoken=xxxx&username=yyyy&password=zzzz

Guia do colaborador