Failed to run SyntaxError: Unexpected token < in JSON at position 0 · Issue #286 · mifi/SimpleInstaBot · GitHub
Skip to content

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

Open

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

Activity

  1. madagreement commented on Feb 18, 2025

    @madagreement

    Hi @mifi Your tool is great and was working like a charm for only 24 hours. But now I have the same error as the gentleman upstairs. I tried your troubleshoot but impossible to get back to normal even after uninstalling and starting from scratch. I am no coder whatsoever but I would assume that an app that hasn't been updated was working without any issue and all of a sudden, JSON error, it would be a quick fix ?
    In any case, if you can find the time to address the issue and release an updated version, me and many other people would gladly by you a coffee ^^
    In any case, thanks for the hardwork !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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