Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#54 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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!)

Ngôn ngữ chính
TypeScript
Star
149
Fork
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của void-sdk/void

Tất cả issue của void-sdk/void

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.