Deployments are failing for CF Pages with Functions
I've been able to deploy my site several times today without any trouble, but now suddenly every deployment fails. I use Wrangler (which doesn't give any errors) to upload my static site along with a few Functions. It did deploy earlier today, but now every deployment fails. I also can't find any logs anywhere to see what is even causing this...
I did find out the ONLY possible way to make the deployments succeed is by adding
compatibility_flags =
to wrangler.toml
file. Deployments fail without that line, and deployments also fail when compatibility_flags has an actual value. I do get errors now saying it doesn't have a value, but the deployments do work this way...
- evonycompanion-2mg.pages.dev
- 724a614d-116a-4f18-bc0c-97babaa8f11d
- b4c2d024209c764df81e32f67d8935b6
- Not getting any errors5 Replies
The error here seems to be
invalid or missing json property for binding DEBUG
Whats your configuration for your bindings and do you have one called DEBUG
?oh now that i think about, deployments did start to fail as soon as i added DEBUG var
here is my wrangler.toml file
thank you for giving me the error. i changed the DEBUG var from a boolean to a string and now deploys do work
i dont understand why though bc when i ran it locally, it just worked fine with a boolean.
anyhow it would be nice for the developers to see these kinds of error messages somewhere because it doesn't show me anywhere
is there an online suggestion for this that i can upvote?
There isn't but I can tell you it's something thats being actively worked on by the team and hopefully shouldn't be an issue soon
For this I would file an issue here https://github.com/cloudflare/workers-sdk/issues
i also noticed that something is wrong with my cookies. i can set or replace cookies without trouble both locally and on the production custom domain. but when i try to delete those cookies by setting the expires attribute to
Thu, 01 Jan 1970 00:00:00 GMT
and also set the domain and path exactly to what it says in devtools, the cookies just don’t get removed, the expiration date is not updated at all. while locally during dev testing it does remove them! how do i fix this?Can you create a new thread with this issue instead of reusing this one?