Server returns 200 (soft 404) for non-existent routes instead of a real 404
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Start by tracing the server's SPA fallback and route-matching handling, then reproduce the request to /this-page-does-not-exist in a deployed Reflex app. Done means undefined routes return HTTP 404 while valid dynamic routes and other runtime-resolved paths continue to work.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
Reflex apps return HTTP 200 for URLs that don't correspond to any real page, serving the SPA fallback as the response body. This is a soft 404: the page doesn't exist, but the server signals success. Crawlers, AI agents, and SEO tooling all treat the response as a valid page and try to extract content from what is effectively an error state.
The root cause is that the SPA fallback is doing double duty. It's how Reflex resolves dynamic routes and other runtime-resolved paths and it's what gets served when a URL doesn't match anything. Both cases hit the same fallback, so the server can't distinguish "valid dynamic route" from "nonexistent page"
We need to be able to distinguish between the two
To Reproduce
- Deploy any Reflex app.
- Request a URL that doesn't map to a defined page, e.g.
/this-page-does-not-exist. - Observe: response is
200 OKwith the SPA fallback HTML. - Expected:
404 Not Found.
- Lingua principale
- Python
- Stelle
- 29k
- Fork
- 1.8k
- Merge medio
- 3g 5h
- PR unite (30g)
- 182
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di reflex-dev/reflex
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
reflex-dev/reflex#8026 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Kept env.py failure: the "move it aside" hint is dropped and a full traceback is logged when alembic.ini uses a relative script_locationForse già presa @MaiAditya l’ha presa 13 giorni fa. Apertabug release-train
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
reflex-dev/reflex#7856 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
0.9.12 changelog follow-ups: the #7132 "_get_was_touched" entry describes unreachable behaviour, #7115's hasattr/getattr change is undocumented, #7131's wordingForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertarelease-train
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
reflex-dev/reflex#7260 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
ClientStateVar: a component that mounts while the value is non-default never re-renders on the push back to the defaultForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
reflex-dev/reflex#6823 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
documentation upstream
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
reflex-dev/reflex#6436 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di reflex-dev/reflex
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
superlinked/sie#1033 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
apache/ponymail-foal#365 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
NousResearch/hermes-labs-plugins#116 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
gcivil-nyu-org/team-3-fall26#192 ·
I maintainer di solito rispondono entro 1 giorno
-
[Study plan] Study sessions can be rescheduled to any length (e.g. 72 hours) with no length checkAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
gcivil-nyu-org/team-2-fall26#159 ·
I maintainer di solito rispondono entro 1 giorno