Unable to intercept request and rate limits
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.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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