uscjake87
uscjake87
CDCloudflare Developers
Created by uscjake87 on 2/13/2025 in #workers-help
Worker KV Not Binding
Thx. Should only one or the other exist in the project?
11 replies
CDCloudflare Developers
Created by uscjake87 on 2/13/2025 in #workers-help
Worker KV Not Binding
Ok made a discovery. So the TOML file still allows a build to go through even if something is wrong/failing and zero log issues. So I started updating the wrangler.jsonc file in addition and finally got some failure logs to discover that I had a wrong KV id number somehow. So whats the point of having a TOML and a jsonc file when they are essentially identical? Should builds only have the jsonc when deploying via github?
11 replies
CDCloudflare Developers
Created by uscjake87 on 2/13/2025 in #workers-help
Worker KV Not Binding
@Chaika So i made that update so it compiles TOML to JSON properly but it still didn't bind any of the namespaces:
account_id = "123"
compatibility_date = "2024-11-11"
compatibility_flags = [
"nodejs_compat",
"nodejs_compat_v2",
]
main = "./index.js"
name = "auth"
workers_dev = true

[observability.logs]
enabled = true

[[kv_namespaces]]
binding = "CURATED_EMAIL"
id = "abc"
preview_id = "abc"

[[kv_namespaces]]
binding = "CURATED_EMAIL_UNKNOWN"
id = "abc"
preview_id = "abc"

[[kv_namespaces]]
binding = "CURATED_INACTIVE_RETRIES"
id = "abc"
preview_id = "abc"

[[kv_namespaces]]
binding = "CURATED_MULTIPLE_INSTALL"
id = "abc"
preview_id = "abc"

[[kv_namespaces]]
binding = "CURATED_COMPANY"
id = "abc"
preview_id = "abc"

[tail_consumers]
service = "tail"
account_id = "123"
compatibility_date = "2024-11-11"
compatibility_flags = [
"nodejs_compat",
"nodejs_compat_v2",
]
main = "./index.js"
name = "auth"
workers_dev = true

[observability.logs]
enabled = true

[[kv_namespaces]]
binding = "CURATED_EMAIL"
id = "abc"
preview_id = "abc"

[[kv_namespaces]]
binding = "CURATED_EMAIL_UNKNOWN"
id = "abc"
preview_id = "abc"

[[kv_namespaces]]
binding = "CURATED_INACTIVE_RETRIES"
id = "abc"
preview_id = "abc"

[[kv_namespaces]]
binding = "CURATED_MULTIPLE_INSTALL"
id = "abc"
preview_id = "abc"

[[kv_namespaces]]
binding = "CURATED_COMPANY"
id = "abc"
preview_id = "abc"

[tail_consumers]
service = "tail"
11 replies
CDCloudflare Developers
Created by uscjake87 on 2/13/2025 in #workers-help
Worker KV Not Binding
ok this is helpful!
11 replies
CDCloudflare Developers
Created by uscjake87 on 2/13/2025 in #workers-help
Worker KV Not Binding
Case ID: 01388357
11 replies
CDCloudflare Developers
Created by uscjake87 on 2/13/2025 in #workers-help
Worker KV Not Binding
No description
11 replies