Skip to content

[wrangler] Surface API error notes in "Some triggers failed to deploy" message#14333

Open
Divkix wants to merge 1 commit into
cloudflare:mainfrom
Divkix:fix/issue-14288-trigger-deploy-error-notes
Open

[wrangler] Surface API error notes in "Some triggers failed to deploy" message#14333
Divkix wants to merge 1 commit into
cloudflare:mainfrom
Divkix:fix/issue-14288-trigger-deploy-error-notes

Conversation

@Divkix

@Divkix Divkix commented Jun 17, 2026

Copy link
Copy Markdown

Fixes #14288.

When a trigger (workflow, schedule, or custom domain) fails to deploy, Wrangler previously surfaced only the generic aggregated message:

[ERROR] Some triggers failed to deploy for myWorker

A request to the Cloudflare API (/accounts/ID/workflows/WF_name) failed

The actual reason returned by the API (e.g. cron_requires_paid_plan) was dropped, and only visible via WRANGLER_LOG=debug. This happened because the aggregated message was built from error.message only — but these are APIError (extends ParseError), whose .message/.text is just the generic "A request to the Cloudflare API (...) failed." string. The real details live in .notes[], populated by throwFetchError.

This change surfaces those notes directly in the aggregated "Some triggers failed to deploy" message (for APIError/ParseError causes), so users immediately see the underlying reason. The existing telemetry aggregation is unchanged.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: this only changes how an existing CLI error message is rendered (adds the underlying API error detail); no documented behavior changes.

Open in Devin Review

…' message

When a trigger (workflow, schedule, custom domain) fails to deploy, the
underlying APIError/ParseError notes (e.g. cron_requires_paid_plan) are now
appended to the aggregated error message instead of being dropped, so users
see the real cause without needing WRANGLER_LOG=debug.
@Divkix Divkix requested a review from workers-devprod as a code owner June 17, 2026 08:15
@changeset-bot

changeset-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0feec78

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
wrangler Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@workers-devprod workers-devprod requested review from a team and emily-shen and removed request for a team June 17, 2026 08:16
@workers-devprod

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • @cloudflare/wrangler
Show detailed file reviewers
  • .changeset/trigger-deploy-error-notes.md: [@cloudflare/wrangler]
  • packages/deploy-helpers/src/triggers/deploy.ts: [@cloudflare/wrangler]
  • packages/wrangler/src/tests/deploy/routes.test.ts: [@cloudflare/wrangler]
  • packages/wrangler/src/tests/deploy/workflows.test.ts: [@cloudflare/wrangler]

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

triggers error messages not displaying

2 participants