Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#286 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
web-dev

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện luồng đăng nhập được mô tả trong issue #286 và kiểm tra HTML được trả về khi bot cố gắng truy xuất dữ liệu người dùng theo cách thủ công. Theo dõi quá trình phân tích JSON bị lỗi sau thông báo "Unable to intercept request"; được coi là hoàn tất khi đường dẫn đăng nhập và truy xuất dữ liệu người dùng hoàn thành mà không có SyntaxError.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
697
Fork
104
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mifi/SimpleInstaBot

Tất cả issue của mifi/SimpleInstaBot

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.