Error when using Void routing rewrite: 'A header value for "X-Void-Routing" contains non-ASCII characters'
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 57/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- typescript
- 领域
- api
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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!)
- 主要语言
- TypeScript
- 星标
- 156
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
相似的 Issue
-
documentation good first issue
难度 2/5 半天 新手友好度 72/100
sujithputta02/Esapay#13 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
ehmpathy/rhachet-roles-bhuild#468 ·
维护者通常 1 天内回复
-
Share dialog: the address book's contact count reads "1 contacts" (no singular form in any language)可能已有人在做 @chibenwa 今天认领。 未关闭ai-driven-qa bug claude Cosmetic
难度 2/5 1-3 小时 新手友好度 72/100
linagora/twake-contacts-frontend#271 · 1 条评论 ·
维护者通常 1 天内回复
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
难度 1/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
Koenkk/zigbee2mqtt#33402 ·
维护者通常 1 天内回复