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

🐛 Bug Report: Failed to parse page JSON data: expected value at line 1 column 1

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
backend

Hướng nghiên cứu

Start by tracing the comment page request and JSON parsing path that produces the reported error, then inspect how the client handles Reddit's 403 response. Compare the behavior with issue #591, which the report says may be related. Done means the reproduced page displays its comments instead of the parse error; the payload does not name a file or test.

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

Mô tả

bug

Describe the bug

Accessing comments triggers the bug.

Steps to reproduce the bug

  1. Open https://www.reddit.com/r/videogames/comments/1xcr4me/which_game_series_is_this/ in Redlib.
  2. See error: Failed to parse page JSON data: expected value at line 1 column 1 | /r/videogames/comments/1xcr4me/which_game_series_is_this/.json?&sort=confidence&raw_json=1

What's the expected behavior?

It should display the comments.

Additional context / screenshot

It might have to something with #591 which prevented loading the comments last week.
Docker logs contain these lines:

redlib  |  ERROR redlib::client > Got an invalid response from reddit expected value at line 1 column 1. Status code: 403 Forbidden
redlib  |  ERROR redlib::utils  > Error page rendered: Failed to parse page JSON data: expected value at line 1 column 1 
  • I checked that the instance that this was reported on is running the latest git commit, or I can reproduce it locally on the latest git commit
    I run an update with quay.io/redlib/redlib:latest which gave me Version 0.40.0 Commit ba116c1186f6b0f9d45f0ae50c827e13eb2f5ea2. That appears to be the newest 'stable' version.
Ngôn ngữ chính
Rust
Star
3.9k
Fork
293
Merge trung bình
4 ngày 9 giờ
Pull request đã merge (30 ngày)
1

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 redlib-org/redlib

Tất cả issue của redlib-org/redlib

Issue tương tự

Thêm issue về Rust

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.