eidam / cf-workers-status-page

Monitor your websites, showcase status including daily history, and get Slack/Telegram/Discord notification whenever your website status changes. Using Cloudflare Workers, CRON Triggers, and KV storage.
https://status-page.eidam.dev
MIT License
2.36k stars 1.44k forks source link

Deploy action fails with several error messages relating to kv-namespace id and compatibility_date #64

Closed rexhaugen closed 3 years ago

rexhaugen commented 3 years ago

When looking at the deploy action log file, several error messages are given:

Error:  Your configuration file is missing the field ["kv-namespace id"] which is required to publish your worker!
 Your configuration file is missing compatibility_date, so a distant past date is assumed. To get the latest possibly-breaking bug fixes, add this line to your wrangler.toml:

    compatibility_date = "2021-09-22"

 For more information about compatibility dates, see: https://developers.cloudflare.com/workers/platform/compatibility-dates

Upon debugging, it appears that Cloudflare is responding to the wrangler kv:namespace list on Line 31 of /.github/workflows/deploy.yaml with that notice about the missing compatibility date in front of the kv-namespace id json which is causing jq to fail parsing.

The solution for me was to add compatibility_date = "2021-07-23" to /wrangler.yaml since that was the last date of update to the main branch. After that, deployment happened automatically and without error.

I have created a pull request for this issue: #65

dzvision commented 3 years ago

Thanks for your solutions, works for me.

eidam commented 3 years ago

thank you for reporting, I just merged #65 to resolve it

eidam commented 3 years ago

and sorry it took a bit longer, been busy with relocation :)