mifi / mifi/SimpleInstaBot

JSON Error

Open
#281 8 comments 0 reactions 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

Zrzut ekranu 2024-08-01 203317

Bot starting, correctly login, change page to my site and crash.

LOGS FROM LAST RUN
11:31 AMNo cookies found
11:31 AMSetting language to English (en)
11:31 AMWaiting 1.39 sec
11:31 AMWaiting 5.53 sec
11:32 AMFound language selector
11:32 AMAlready English language
11:32 AMWaiting 1.44 sec
11:32 AMNo login page button, assuming we are on login form
11:32 AMWaiting 1.63 sec
11:32 AMWaiting 1.85 sec
11:32 AMSetting language to English (en)
11:32 AMWaiting 1.61 sec
11:32 AMWaiting 3.16 sec
11:32 AMFound language selector
11:32 AMAlready English language
11:32 AMSaving cookies
11:32 AMHave followed/unfollowed 0 in the last hour
11:32 AMHave followed/unfollowed 0 in the last 24 hours
11:32 AMHave liked 0 images in the last 24 hours
11:32 AMFailed to detect username Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'viewer')
at pptr://puppeteer_evaluation_script:1:34
11:32 AMTrying to get user data from HTML
11:32 AMNavigating to user myinsta
11:32 AMGoto https://www.instagram.com/myinsta
11:32 AMPage loaded
11:32 AMWaiting 2.04 sec
11:32 AMNeed to intercept network request to get user data
11:32 AMUnable to intercept request, will send manually
11:32 AMFailed to manually send request Error: Evaluation failed: SyntaxError: Unexpected token < in JSON at position 0
11:32 AMFailed to run SyntaxError: Unexpected token < in JSON at position 0

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

Reproduce the crash by following the login and navigation flow to the configured user page, then inspect the username-detection, network-interception, and manual-request steps shown in the logs. Done means the run completes that navigation without the viewer or unexpected-token JSON errors; the payload names no files or tests to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.