wrangler pages deployment tail error

✘ [ERROR] No deployments for environment: production the following command fails wrangler pages deployment tail --project-name=composer --environment=production unless i specifcially give the --deployment
4 Replies
richburdon
richburdon4mo ago
the logs work form the web dashboard, and from the CLI for the preview env. the only thing that i can see different for the production env is that we have custom domains (separately, it would be great to have a general --json option for all wrangler commands to get jq parsable output (e.g., list of deployments) still failing wrangler pages deployment list --project-name=composer returns a list of deployments BUT only the first 25 -- which are all preview. I don't see a way to filter production. My guess is that wrangler pages deployment tail --project-name=composer --environment=production fails because it only grabs the first page. if i specify the deployment directly (by guessing what that is from the CF URL from the dashboard since I can't find that anywhere else). then it works.
Chaika
Chaika4mo ago
yea, you can see that's what it does, just a simple call to deployments: https://github.com/cloudflare/workers-sdk/blob/aa0aa4794cfa3f8a86498bf54f1e973c3c800b7b/packages/wrangler/src/pages/deployment-tails.ts#L165C1-L165C59 which defaults to 25, and then it filters later with what it gets back
GitHub
workers-sdk/packages/wrangler/src/pages/deployment-tails.ts at aa0a...
⛅️ Home to Wrangler, the CLI for Cloudflare Workers® - cloudflare/workers-sdk
Chaika
Chaika4mo ago
I would make a github issue in the workers-sdk repo if you haven't already
richburdon
richburdon4mo ago
GitHub
🐛 BUG: wrangler cannot find deployments past the first 25 records ·...
Which Cloudflare product(s) does this pertain to? Wrangler core What version(s) of the tool(s) are you using? 3.62.0 What version of Node are you using? 18.19.0 What operating system and version ar...
Want results from more Discord servers?
Add your server