htmx requests that error fail silently
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 57/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, ruby
- Área
- frontend
Línea de trabajo
Start by locating the application and backend entrypoints and how their JavaScript is loaded. Check how the 500 page exposes data-error-id and how existing toast notifications are implemented. Done means htmx response and network errors show the specified messages, with the Sentry event id copyable when present.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Errors now render real 500/404 pages instead of redirecting home with a flash. htmx doesn't swap non-2xx responses by default, so when an `hx-*` request errors, nothing visible happens. (Before, htmx followed the redirect and swapped the home page into the target, which was also wrong.)
Proposal: a small global handler loaded in both the `application` and `backend` entrypoints:
- on `htmx:responseError`, show a dismissable toast with a message for the status:
- 404: "couldn't find that"
- 403: "you don't have permission"
- 422: "refresh and try again"
- otherwise: "something went wrong"
- when the 500 page includes a Sentry event id (`data-error-id`), show that id with click-to-copy.
- on `htmx:sendError` (network failure), show a "couldn't reach the server" toast.
- Lenguaje dominante
- Ruby
- Estrellas
- 85
- Forks
- 72
- Merge medio
- 3 d 12 h
- PR fusionados (30 d)
- 22
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de hackclub/auth
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 34/100
Los mantenedores suelen responder en 1 día
Todos los issues de hackclub/auth
Issues similares
-
SecureRandom.alphanumeric can silently return an empty or wrong-length secret instead of raisingAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
ruby/securerandom#92 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
open-feature/ruby-sdk-contrib#340 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
zold-io/wts.zold.io#651 ·
Los mantenedores suelen responder en 1 día
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
erkamyaman/rust-anything#788 ·
Los mantenedores suelen responder en 1 día