Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

🐛 Bug Report: Rate limit mismatch

Aperta
#484 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
docker-compose, rust
Ambito
backend

Direzione di ricerca

Start by tracing the rate limit check that requests /r/reddit/hot.json?&raw_json=1 and parses its response; the payload does not name the relevant source file or test. Reproduce the reported 403 response with the provided Docker Compose setup and check how the rate limit check handles it. Done means the reported failure is understood and the rate limit check handles the response appropriately.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I appear to be getting this error after trying to enable hsts via the docker compose instance i have running.

 ERROR redlib::client > Got an invalid response from reddit expected value at line 1 column 1. Status code: 403 Forbidden                                                                                                                                                          │
│   Rate limit check failed: Failed to parse page JSON data: expected value at line 1 column 1 | /r/reddit/hot.json?&raw_json=1                                                                                                                                                        │
│   This may cause issues with the rate limit.                                                                                                                                                                                                                                         │
│   Starting Redlib...                                                                                                                                                                                                                                                                 │
│   Please report this error with the above information.                                                                                                                                                                                                                               │
│   https://github.com/redlib-org/redlib/issues/new?assignees=sigaloid&labels=bug&title=%F0%9F%90%9B+Bug+Report%3A+Rate+limit+mismatch                                                                                                                                                 │
│   Running Redlib v0.36.0 on 0.0.0.0:8080!
  services:
  redlib:
    image: quay.io/redlib/redlib:latest
    restart: always
    container_name: "redlib"
    ports:
      - 0.0.0.0:8087:8080  # bind to localhost IPv4 only on port 8087
    user: nobody
    read_only: true
    security_opt:
      - no-new-privileges:true
    cap_drop:
      - ALL
    env_file: .env
    command: ["redlib", "-4", "-H", "604800"] # --ipv4-only and set HSTS header for 7 days (604800 seconds)
    healthcheck:
      test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/"]
      interval: 5m
      timeout: 3s
Lingua principale
Rust
Stelle
3.9k
Fork
293
Merge medio
14g 8h
PR unite (30g)
2

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di redlib-org/redlib

Tutte le issue di redlib-org/redlib

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.