No details on failed deployment
Hell guys, I was trying to deploy a new version of my application and I noticed several things.
1- the deployment failed but I have no idea why and the CF UI doesn't provide any detail about it. (the console says it was deployed successfuly)
2- the deployment associates a KV namespace which is not longer associated, so I wonder if it's cached or something:
Any ideas?
10 Replies
Hi Tonny, could you share the deployment id associated with that deployment?
@seustace is it the last part of the url?
7abd6abd-638d-41ca-b73c-a27259ba1e5f
Yep that's it
Error is due to a re-used binding name, if you have another binding with what that KV binding name was - it'll be that.
The deleted KV namespace will also cause issues. You'll need to make a new namespace so you can see the list and delete the now orphaned binding
You see the get started if you have no namespaces.
Gotcha, I'll give it a try, tyvm @Walshy | Deploying
So I sorted out the KV binding, however deployment is still failing with no specific reason on it:
dde0259e-002a-4def-80e2-ef5f8624746f
any idea?the binding name 'DISCORD_ERRORS_CHANNEL_ID' cannot be used more than once
what do you mean by more than once? b/c I've set it up on Prod and Preview envs?
nah it will be used twice in the same env
commonly happens if you have it as a secret + env var
I'd check through all your bindings (including secrets)
does it also count the wranger.toml secrets?
yes, if you're using wrangler.toml that'll be the source of truth for your bindings
I'll give it a try without the wranger.toml file then later today, tyvm