Error when using Void routing rewrite: 'A header value for "X-Void-Routing" contains non-ASCII characters'
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 57/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- api
Research direction
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.
Written by the indexing model from the issue text.
Description
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!)
- Dominant language
- TypeScript
- Stars
- 149
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from void-sdk/void
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Incorrect bindings Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
mksglu/context-mode#1200 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anthropics/claude-code#96687 ·
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
AOSSIE-Org/DebateAI#582 · 2 comments ·