pgrimaud / instagram-user-feed

This is a scrapper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.
MIT License
873 stars 136 forks source link

400 Bad Request while checkpoint challenge #163

Closed bytehead closed 3 years ago

bytehead commented 3 years ago

Version(s) affected: 6.6.2

Description
During login, after submitting the checkpoint challenge, a 400 bad request is the result.

How to reproduce
Try to login where you have to verifiy your account with a challenge delivered by mail.

Possible Solution
n/a - still investigating. Is it possible that instagram somehow changed the API? Does anybody know? Add a longer delay to wait for emails droppin' into the mailbox.

Additional context
Error message:

In RequestException.php line 113:

  [GuzzleHttp\Exception\ClientException (400)]                                                                                             
  Client error: `POST https://www.instagram.com/challenge/1476511775/A6giahcBX6/` resulted in a `400 Bad Request` response:                
  {"message": "", "challenge": {"challengeType": "VerifyEmailCodeForm", "errors": ["Please check the code we sent you and  (truncated...)  
bytehead commented 3 years ago

I have an assumption - mail delivery takes to long. it reads an old verification mail 🙈

bytehead commented 3 years ago

Just tested #164 on production with a delay of 30secs and it works 🙃

pgrimaud commented 3 years ago

Thank you!