Wrangler Errors
AwaitStep uses wrangler internally to bundle and deploy Cloudflare Workers. Wrangler errors are surfaced in the deploy log.
wrangler: command not found
Cause: The wrangler CLI is not installed in the container.
Fix: Pull the latest container image:
docker compose pull
docker compose up -dIf running AwaitStep from source, install wrangler:
pnpm add -g wrangler
# or
npm install -g wranglerAuthentication error: You must be logged in
Cause: Wrangler is trying to use its own authentication instead of the API token supplied by AwaitStep. This can happen if there is a stale ~/.wrangler/config file inside the container.
Fix:
- Stop the container.
- Remove the wrangler config volume or exec into the container and delete
~/.wrangler/config. - Restart the container.
If running from source:
rm -rf ~/.wrangler/configA worker with this name already exists
Cause: A Worker with the generated name already exists in your Cloudflare account, created outside of AwaitStep.
Fix: Either:
- Delete the conflicting Worker in the Cloudflare dashboard.
- Or rename your AwaitStep workflow to generate a different Worker name.
Worker names are derived from the workflow name and the APP_NAME env var.
Error: Script startup exceeded CPU time limit
Cause: The generated Worker script fails to initialise within Cloudflare's startup CPU time limit. This can happen if the workflow has very complex generated code.
Fix: Simplify the workflow. If the issue persists, file a bug — this may indicate a code generation issue.
Error: Too many resources bound
Cause: The workflow references too many KV namespaces, D1 databases, R2 buckets, or other Cloudflare bindings. Cloudflare limits the number of bindings per Worker.
Fix: Reduce the number of resources used by the workflow. Consider consolidating into fewer namespaces or databases.
TypeError: Cannot read properties of undefined in deploy log
Cause: A node's config has a missing required field that produced invalid generated code.
Fix:
- Open the workflow canvas.
- Look for nodes with a warning indicator.
- Open each node's config drawer and ensure all required fields are filled.
- Re-deploy.
Build failed: Module not found
Cause: The workflow or a node template imports a module that is not available. This can happen with marketplace nodes that have NPM dependencies not bundled correctly.
Fix:
- Check if the node's package dependencies are listed in its
node.jsondependenciesfield. - If using a custom node, ensure all dependencies are declared.
- For marketplace nodes, try uninstalling and reinstalling the node.
Deployment succeeds but Worker behaves unexpectedly
Cause: The generated code is valid but has a logic error introduced by an expression or custom Step code.
Fix:
- Click View Generated Code in the workflow toolbar (or fetch the version via API).
- Review the generated TypeScript for obvious errors.
- Check that all
{{expression}}references resolve to the correct values. - Add console.log statements to Step nodes to debug (visible in Cloudflare Worker logs). Remove them before the final deploy.
Checking wrangler version
To check which version of wrangler AwaitStep is using:
docker compose exec awaitstep wrangler --versionIf you need a specific wrangler version, override the image or build from source with the desired version pinned.