stubijs / statuspage

Monitor your websites, showcase status including daily history, and get Slack/Telegram/Discord notification whenever your website status changes. Using Vue, Vite, Cloudflare Workers, CRON Triggers, and KV storage.
https://status.jstubenrauch.de
MIT License
37 stars 13 forks source link

Error when deploy #518

Open JohanChungus opened 1 year ago

JohanChungus commented 1 year ago

✘ [ERROR] Unexpected character, expecting string, number, datetime, boolean, inline array or inline table

58

59 /home/runner/work/status/status/packages/status-worker/wrangler.toml:15:46:

60 15 │ kv_namespaces = [{binding="KV_STATUS_PAGE", id=, preview_id=}]

61 ╵ ^

62

63

64 If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose

65

66

67Error: Process completed with exit code 1.

SunsetMkt commented 1 year ago

This happens in https://github.com/stubijs/statuspage/blob/main/.github/workflows/worker-deploy.yml#L36 I guess

JohanChungus commented 1 year ago

This happens in https://github.com/stubijs/statuspage/blob/main/.github/workflows/worker-deploy.yml#L36 I guess

How I fix it?

SunsetMkt commented 1 year ago

No idea. I'm new in Shell.

The line export KV_NAMESPACE_ID=$(npx wrangler kv:namespace list | jq '.[] | select(.title=="KV_STATUS_PAGE") .id') is used to extract KV ID from the output of npx wrangler . The output of npx wrangler must had been changed so the script (jq '.[] | select(.title=="KV_STATUS_PAGE") .id' ) could not extract the ID.

JohanChungus commented 1 year ago

Hmm