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

First deploy after void secret put fails with Cloudflare 100405 (exports differ) on a Durable Object Worker

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

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

Hướng nghiên cứu

Start by tracing void secret put and the Cloudflare deploy path that stages a Worker Version at 0% traffic; compare the version exports produced after the secret change with those from a normal deploy. The report gives a reproducible sequence on a fresh Worker with Durable Objects, crons, routes, and version metadata. Done when deploying unchanged code after void secret put succeeds without Cloudflare error 100405.

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

Mô tả

On a Worker with Durable Objects, the first void deploy --platform cloudflare after void secret put fails when Void stages the new version at 0% beside the secret-changed one:

■ deploy: Cloudflare could not stage the uploaded Worker Version at zero-percent traffic (exit 1); production traffic is unchanged. Cloudflare error code: 100405.
  │ [100405] All versions in a multi-version deployment must declare identical `exports`. Deploy the version that changes `exports` at 100% first, then split traffic.

Repro (unmodified void 1.1.11; a fresh Worker each time; ~670 KB, so the 1 MiB read-back in #459 is not involved):

  1. void deploy a new Worker with two SQLite Durable Object classes (defineDurableObject), routes, two defineScheduled crons, preview_urls: false and a version_metadata binding: succeeds.
  2. void secret put JEV_API_KEY (declared optional in env.ts): succeeds.
  3. void deploy with no code change: fails as above, and so does every retry.

The same code was rebuilt between steps 1 and 3, so the exports shouldn't differ; it looks like the version created by the secret change declares different exports from a version Void uploads. An older Worker of ours did deploy after secret changes, so it may depend on something about a fresh Worker's first versions, but we haven't narrowed that down.

Found while looking into #459. void 1.1.11, cf CLI bundled with it, Node 24.18, macOS.

Ngôn ngữ chính
TypeScript
Star
402
Fork
32
Merge trung bình
12 giờ 28 phút
Pull request đã merge (30 ngày)
77

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 voidzero-dev/void

Tất cả issue của voidzero-dev/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.