Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#54 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from void-sdk/void

All issues in void-sdk/void

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.