Skip to content

[Help Wanted] 绑定R2后部署失败 #526

@Delimo

Description

@Delimo

Self-check / 自查

  • I have already read the document and checked my relative settings / 我已经仔细阅读文档并检查了有关设置

Confirm / 确认

  • I have searched the Issue and found no related issues / 我已经搜索过Issue,没有找到相关问题
  • I am using the latest source from this repository / 我使用的是来自此仓库的最新版代码
  • I provided information which does not include sensitive information / 我提供的信息里不包含敏感信息

Problem Description / 问题描述

我在绑定中添加R2 存储桶,然后重构就出现问题了,变量名跟着教程设置为img_r2了。试着把R2存储桶删除后就又正常。

提示:
构建日志
此部署由于内部错误失败。重试部署以重新启动构建流程。

日志:
2026-04-23T11:28:47.941759Z Cloning repository...
2026-04-23T11:28:50.780511Z From https://github.com/Delimo/CloudFlare-ImgBed
2026-04-23T11:28:50.780846Z * branch 478bc95 -> FETCH_HEAD
2026-04-23T11:28:50.780916Z
2026-04-23T11:28:51.237588Z HEAD is now at 478bc95 bump version to v2.6.7
2026-04-23T11:28:51.237877Z
2026-04-23T11:28:51.275934Z
2026-04-23T11:28:51.276336Z Using v2 root directory strategy
2026-04-23T11:28:51.362503Z Success: Finished cloning repository files
2026-04-23T11:28:53.801561Z Checking for configuration in a Wrangler configuration file (BETA)
2026-04-23T11:28:53.802274Z
2026-04-23T11:28:54.886722Z No Wrangler configuration file found. Continuing.
2026-04-23T11:28:55.020503Z Detected the following tools from environment: npm@10.9.2, nodejs@22.16.0
2026-04-23T11:28:55.021098Z Installing project dependencies: npm clean-install --progress=false
2026-04-23T11:28:57.338477Z npm warn deprecated prebuild-install@7.1.3: No longer maintained. Please contact the author of the relevant native addon; alternatives are available.
2026-04-23T11:28:57.356767Z npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
2026-04-23T11:28:57.468273Z npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
2026-04-23T11:28:58.96001Z npm warn deprecated @cloudflare/pages-plugin-sentry@1.1.4: Sentry now provides official support for Cloudflare Workers and Pages. Refer to the Sentry documentation (https://docs.sentry.io/platforms/javascript/guides/cloudflare/) for more details.
2026-04-23T11:29:09.183071Z
2026-04-23T11:29:09.183399Z added 341 packages, and audited 342 packages in 14s
2026-04-23T11:29:09.183514Z
2026-04-23T11:29:09.183592Z 51 packages are looking for funding
2026-04-23T11:29:09.183649Z run npm fund for details
2026-04-23T11:29:09.248991Z
2026-04-23T11:29:09.24922Z 13 vulnerabilities (5 moderate, 8 high)
2026-04-23T11:29:09.249278Z
2026-04-23T11:29:09.249328Z To address issues that do not require attention, run:
2026-04-23T11:29:09.249364Z npm audit fix
2026-04-23T11:29:09.249399Z
2026-04-23T11:29:09.249439Z To address all issues (including breaking changes), run:
2026-04-23T11:29:09.249473Z npm audit fix --force
2026-04-23T11:29:09.249542Z
2026-04-23T11:29:09.249605Z Run npm audit for details.
2026-04-23T11:29:09.314035Z Executing user command: npm install
2026-04-23T11:29:10.679033Z
2026-04-23T11:29:10.679334Z up to date, audited 342 packages in 1s
2026-04-23T11:29:10.679421Z
2026-04-23T11:29:10.679472Z 51 packages are looking for funding
2026-04-23T11:29:10.679514Z run npm fund for details
2026-04-23T11:29:10.74202Z
2026-04-23T11:29:10.742293Z 13 vulnerabilities (5 moderate, 8 high)
2026-04-23T11:29:10.742338Z
2026-04-23T11:29:10.74238Z To address issues that do not require attention, run:
2026-04-23T11:29:10.74242Z npm audit fix
2026-04-23T11:29:10.742454Z
2026-04-23T11:29:10.742481Z To address all issues (including breaking changes), run:
2026-04-23T11:29:10.742759Z npm audit fix --force
2026-04-23T11:29:10.742826Z
2026-04-23T11:29:10.742863Z Run npm audit for details.
2026-04-23T11:29:10.770407Z Finished
2026-04-23T11:29:11.447724Z Checking for configuration in a Wrangler configuration file (BETA)
2026-04-23T11:29:11.448185Z
2026-04-23T11:29:12.534266Z No Wrangler configuration file found. Continuing.
2026-04-23T11:29:12.534874Z Found Functions directory at /functions. Uploading.
2026-04-23T11:29:12.5387Z ⛅️ wrangler 3.101.0
2026-04-23T11:29:12.538829Z -------------------
2026-04-23T11:29:13.808114Z ✨ Compiled Worker successfully
2026-04-23T11:29:14.878165Z Validating asset output directory
2026-04-23T11:29:18.528828Z Deploying your site to Cloudflare's global network...
2026-04-23T11:29:23.955214Z Uploading... (135/135)
2026-04-23T11:29:23.956169Z ✨ Success! Uploaded 0 files (135 already uploaded) (0.48 sec)
2026-04-23T11:29:23.956569Z
2026-04-23T11:29:24.42687Z ✨ Upload complete!
2026-04-23T11:29:27.756143Z Success: Assets published!
2026-04-23T11:29:29.017897Z Error: Failed to publish your Function. Got error: binding img_r2 of type r2_bucket contains an invalid jurisdiction

Upload Method / 上传方式

cf连接GitHub

Upload Channel / 上传渠道

Cloudflare R2

Additional Materials / 辅助材料

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions