Error deploying pages project to preview environment

Using wrangler 3.15.0, I cannot deploy my pages project to a preview environment. Using the following pages deployment command:
> wrangler pages deploy static --project-name=<REDACTED>
▲ [WARNING] Warning: Your working directory is a git repo and has uncommitted changes

To silence this warning, pass in --commit-dirty=true


✨ Compiled Worker successfully
🌍 Uploading... (93/93)

✨ Success! Uploaded 0 files (93 already uploaded) (0.46 sec)

✨ Uploading Functions bundle
✨ Deployment complete! Take a peek over at <REDACTED>
> wrangler pages deploy static --project-name=<REDACTED>
▲ [WARNING] Warning: Your working directory is a git repo and has uncommitted changes

To silence this warning, pass in --commit-dirty=true


✨ Compiled Worker successfully
🌍 Uploading... (93/93)

✨ Success! Uploaded 0 files (93 already uploaded) (0.46 sec)

✨ Uploading Functions bundle
✨ Deployment complete! Take a peek over at <REDACTED>
No description
33 Replies
James
James•11mo ago
It sounds like you're running into https://github.com/cloudflare/workers-sdk/issues/3966, where your Functions are erroring after being uploaded
landon
landon•11mo ago
so maybe a compilation error in the fuctions could be causing this?
James
James•11mo ago
not a compilation error, something at runtime specifically
landon
landon•11mo ago
is there a log i could look at myself?
James
James•11mo ago
unfortunately there is not. If you post a deployment ID, I can ping someone tomorrow to take a look for you
landon
landon•11mo ago
from the url looks like this could be the deployment id: 9604495b-8d76-4a37-890a-4131f5a6103e ok ty looking forward to understanding more tomorrow
James
James•11mo ago
thanks, I'll ping someone to pull logs for you, sorry for the trouble Out of interest, does it work locally with pages dev? That might be a way you can shortcut figuring this out if it errors there too
landon
landon•11mo ago
yeah sure does
James
James•11mo ago
that's no fun, sorry. Hopefully the logs will yield more info
landon
landon•11mo ago
well, getting an issue with 3.15.0 that im not getting with 3.4.0
Error: D1_ERROR: no such table: dashboard_notifications
Error: D1_ERROR: no such table: dashboard_notifications
there any issues w/ d1 bindings that could be causing this? (ive tried to deploy with 3.4.0 as well)
James
James•11mo ago
not to my knowledge 🤔 you might try asking in #d1-beta some logs were pulled for you @landon : could not resolve binding "BUILD_SCHEDULER" something about your service binding config is incorrect double check your environments and everything there is setup correctly
landon
landon•11mo ago
Will do thank you! i checked to make sure its bound through the UI. i selected "production" but its linking to a staging version (our worker is confusingly named build-scheduler-staging)
https://dash.cloudflare.com/e7526284f9ee484875c61723e78af4ae/workers/services/view/build-scheduler-staging/staging i get a 404 from that link, but f i replace that last path parameter of "staging" with "production" it resolves
James
James•11mo ago
hmmm, is build-scheduler-staging a very old worker that uses service environments or something like that? What's your account ID? dumb question, it's in your url above e7526284f9ee484875c61723e78af4ae 😅 what happens if you try and edit the binding and point it to the production env? (service environments were an old thing that's since legacy, so every worker has a production env that's just default nowadays)
landon
landon•11mo ago
I tried that it had no effect The link still pointed to staging
James
James•11mo ago
Can you check the payload being sent from the dash when you make that change, in your browser's network reqs?
Want results from more Discord servers?
Add your server