Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Direct error through Caddy's error route

Abierto
#2,747 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
43/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go, php
Área
backend, web-dev

Línea de trabajo

Start by reading the implementation and tests for FrankenPHP's error handling, then compare how Caddy's error route is used by the linked caddy-crowdsec-bouncer example, especially its enable_caddy_error option. The issue asks for an option to direct FrankenPHP level errors to that route so Caddy can serve a custom error page; done means the option works for those errors and is covered by tests.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement
Describe your feature request

Is your feature request related to a problem? Please describe.
As result of #2711 I am seeing frequent maximum request handling time exceeded pages, which are just black-on-white. This is not exactly consistent with whatever style a website can have, and thus it can potentially confuse users. While web-server failures generally should break the flow and standout, this is a bit much.

Describe the solution you'd like
Caddy has errors route, that allows "secondary" processing, including serving custom error pages (static or not). It would be nice to have an option to direct FrankenPHP-level errors to that route, to be able to customize the error page. Should be similar to enable_caddy_error in https://github.com/hslatman/caddy-crowdsec-bouncer

Describe alternatives you've considered
I can't think of any alternatives really. Maybe to catch the response on Caddy level somehow, perhaps based on combination of response headers. But that feels "messy", when there literally is a route to do handle error events in Caddy.

Lenguaje dominante
Go
Estrellas
11.4k
Forks
499
Merge medio
2 d 15 h
PR fusionados (30 d)
34

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de php/frankenphp

Todos los issues de php/frankenphp

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.