Skip to content

Failed to run SyntaxError: Unexpected token < in JSON at position 0 #286

@MilanObrenovic

Description

@MilanObrenovic

To Reproduce
Run the bot, login and get this error:

Screenshots
image

Desktop (please complete the following information):

  • OS: iMac Sonoma 14.6.1
  • Browser: Brave Browser
  • Version: v1.70.117

Additional context

  • No settings have been changed, they remain by default config.

Provide me with HTML
LOGS FROM LAST RUN
1:50 PMNo cookies found
1:50 PMSetting language to English (en)
1:50 PMWaiting 1.64 sec
1:50 PMWaiting 4.12 sec
1:50 PMFound language selector
1:50 PMAlready English language
1:50 PMWaiting 1.40 sec
1:50 PMNo login page button, assuming we are on login form
1:50 PMWaiting 1.00 sec
1:50 PMWaiting 1.68 sec
1:50 PMStill not logged in, trying to reload loading page
1:50 PMWaiting 9.06 sec
1:51 PMWARNING: Login has not succeeded. This could be because of an incorrect username/password, or a "suspicious login attempt"-message. You need to manually complete the process, or if really logged in, click the Instagram logo in the top left to go to the Home page.
1:51 PMWaiting 8.63 sec
1:51 PMWaiting 9.28 sec
1:51 PMWaiting 5.39 sec
1:51 PMWaiting 9.51 sec
1:51 PMWaiting 7.60 sec
1:51 PMWaiting 9.27 sec
1:51 PMSetting language to English (en)
1:51 PMWaiting 1.11 sec
1:52 PMWaiting 3.40 sec
1:52 PMFound language selector
1:52 PMAlready English language
1:52 PMSaving cookies
1:52 PMHave followed/unfollowed 0 in the last hour
1:52 PMHave followed/unfollowed 104 in the last 24 hours
1:52 PMHave liked 0 images in the last 24 hours
1:52 PMFailed to detect username Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'viewer')
at pptr://puppeteer_evaluation_script:1:34
1:52 PMTrying to get user data from HTML
1:52 PMNavigating to user -CENSORED-
1:52 PMGoto https://www.instagram.com/-CENSORED-
1:52 PMPage loaded
1:52 PMWaiting 2.77 sec
1:52 PMNeed to intercept network request to get user data
1:52 PMUnable to intercept request, will send manually
1:52 PMFailed to manually send request Error: Evaluation failed: SyntaxError: Unexpected token < in JSON at position 0
1:52 PMFailed to run SyntaxError: Unexpected token < in JSON at position 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions