mifi / mifi/SimpleInstaBot

Unable to intercept request and rate limits

Open
#312 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
692
Forks
103
Avg merge
3m
Merged PRs (30d)
4

Description

After I start the bot (default settings), it works fine but after few hours it stops working.

Image
8:09 PM - Waiting 34.62 sec
8:10 PM - Trying to get user data from HTML
8:10 PM - Navigating to user the_tapiaernie
8:10 PM - Goto https://www.instagram.com/the_tapiaernie
8:10 PM - Page loaded
8:10 PM - Waiting 2.09 sec
8:10 PM - Need to intercept network request to get user data
8:10 PM - Unable to intercept request, will send manually
8:10 PM - Failed to manually send request SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
8:10 PM - Failed to process follower the_tapiaernie SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
8:10 PM - Waiting 38.74 sec
8:11 PM - Trying to get user data from HTML
8:11 PM - Navigating to user marcoantoniosaenzgalicia
8:11 PM - Goto https://www.instagram.com/marcoantoniosaenzgalicia
8:11 PM - Page loaded
8:11 PM - Waiting 2.26 sec
8:11 PM - Need to intercept network request to get user data
8:11 PM - Unable to intercept request, will send manually
8:11 PM - Failed to manually send request SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
8:11 PM - Failed to process follower marcoantoniosaenzgalicia SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
8:11 PM - Waiting 25.96 sec
8:11 PM - Trying to get user data from HTML
8:11 PM - Navigating to user carmona875
8:11 PM - Goto https://www.instagram.com/carmona875

Failed to manually send request SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON -- This particular error happens because Instagram not sending a json, and giving 429 response.

Which can be avoided if Unable to intercept request, will send manually --> this issue get fixed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the code that logs “Need to intercept network request” and the manual request fallback, then reproduce the failure with the bot’s default settings after sustained use. Inspect how the intercepted request and the fallback handle Instagram responses, including the reported 429 HTML response. Done means the request path no longer reaches the reported JSON parse failure when interception is unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.