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

Error when using Void routing rewrite: 'A header value for "X-Void-Routing" contains non-ASCII characters'

Abierto
#54 1 comentario 0 reacciones 0 asignados Ver en GitHub

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
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
typescript
Área
api

Línea de trabajo

Reproduce the failure with the routing.rewrites entry in void.json and the middleware c.rewrite("/api/auth") path, then inspect how the X-Void-Routing header is assembled. Done means both rewrite forms no longer produce a non-ASCII header error and the Firefox network tab shows a valid routing header.

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

Descripción

I'm seeing the following error when using a routing rewrite in Void 0.9.0:

A header value for "X-Void-Routing" contains non-ASCII characters: "rewrite[/api/auth*] → /api/auth (void.json#routing.rewrites)"

Here's my routing configuration in void.json:

  "routing": {
    "rewrites": {
      "/api/auth/*": "/api/auth"
    }
  }

And the header from the Firefox dev tools network tab:

x-void-routing
	rewrite[/api/auth*] � /api/auth (void.json#routing.rewrites)

It looks like the is the culprit.

I'm seeing the same error when rewriting the path in middleware, like:

  if (c.req.path.startsWith("/api/auth/")) {
    return c.rewrite("/api/auth")
  }

(I'm setting up Better Auth with D1 + Drizzle directly for a Cloudflare deployment since I'm not part of the private beta. Let me know if these bug reports are annoying!)

Lenguaje dominante
TypeScript
Estrellas
149
Forks
2
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

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 void-sdk/void

Todos los issues de void-sdk/void

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.