#BadDeployKey for local deployment

14 messages · Page 1 of 1 (latest)

gilded isle
#

I'm getting this error after weeks of doing local deployment development on my laptop. Any ideas, kinda is breaking my development workflow right now.

✖ Error: Unable to start push to http://127.0.0.1:3210
✖ Error fetching POST  http://127.0.0.1:3210/api/deploy2/start_push 403 Forbidden: BadDeployKey: The provided deploy key was invalid for deployment 'redacted'. Double check that the environment this key was generated for matches the desired deployment.
Failed due to network error, retrying in 19.46s...
soft roostBOT
#

Thanks for posting in #1088161997662724167.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.

    - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
    - Use [search.convex.dev](https://search.convex.dev) to search Docs, Stack, and Discord all at once.
    - Additionally, you can post your questions in the Convex Community's #1228095053885476985 channel to receive a response from AI.
    - Avoid tagging staff unless specifically instructed.

    Thank you!
gilded isle
#

Hmmm, okay - billing issue (i think)...

snow oar
#

nope not that, more people faced this including me (check general channel)

gilded isle
#

ahhh, let me check, thanks

gilded isle
#

It's not a billing issue... anyone?

gilded isle
#

I reached out to Convex Support, I am a paid user, but no one is replying...

? This deployment is using an older version of the Convex backend. Upgrade now? Yes
? Transfer data from existing deployment? transfer data
waiting for local backend to start...
Failed to authenticate: "The provided admin key was invalid for this instance", check your server auth config
Attempting reconnect in 82.49577372274058ms
WebSocket reconnected
Error: [CONVEX Q(_system/cli/queryEnvironmentVariables:default)] [Request ID: e08323b9bcef42da] Server Error
Operation query not permitted

  Called by client
    at OptimisticQueryResults.queryResult (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:136312:13)
    at BaseConvexClient.localQueryResultByToken (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137661:40)
    at BaseConvexClient.webSocketConstructor (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:142770:112)
    at /Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137377:7
    at BaseConvexClient.handleTransition (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137566:7)
    at BaseConvexClient.notifyOnQueryResultChanges (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137547:10)
    at WebSocketManager.onMessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137454:20)
    at ws.onmessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:136643:29)
    at callListener (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:97386:18)
    at _WebSocket.onMessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:97321:13)
gilded isle
#

Anyone? This is quite annyoing, and there is no information on how to fix this... please... It's telling me that I have a Bad deploy key, I'm not sure how to fix this? @naive bridge @tough sequoia ? I did reach out to support, but nothing...

#
jasondejesuz@Jasons-MacBook-Air arbitrage-app % bunx convex dev --local --once
? This deployment is using an older version of the Convex backend. Upgrade now? Yes
? Transfer data from existing deployment? transfer data
waiting for local backend to start...
Failed to authenticate: "The provided admin key was invalid for this instance", check your server auth config
Attempting reconnect in 101.66248842415936ms
WebSocket reconnected
Error: [CONVEX Q(_system/cli/queryEnvironmentVariables:default)] [Request ID: 5b44f51477d77ca3] Server Error
Operation query not permitted
  Called by client
    at OptimisticQueryResults.queryResult (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:136312:13)
    at BaseConvexClient.localQueryResultByToken (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137661:40)
    at BaseConvexClient.webSocketConstructor (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:142770:112)
    at /Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137377:7
    at BaseConvexClient.handleTransition (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137566:7)
    at BaseConvexClient.notifyOnQueryResultChanges (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137547:10)
    at WebSocketManager.onMessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:137454:20)
    at ws.onmessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:136643:29)
    at callListener (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:97386:18)
    at _WebSocket.onMessage (/Users/jasondejesuz/Documents/projects/arbitrage-app/node_modules/convex/dist/cli.bundle.cjs:97321:13)
#
jasondejesuz@Jasons-MacBook-Air arbitrage-app % bunx convex dev --local --once
✖ A local backend is still running on port 3210. Please stop it and run this command again.
jasondejesuz@Jasons-MacBook-Air arbitrage-app % bunx convex dev --local --once
✖ A local backend is still running on port 3210. Please stop it and run this command again.
full merlin
#

We're chatting in a support thread now, if anyone else sees this let us know!

clear tendon
#

Hi @full merlin, I also get this error occasionally. I had it a few weeks ago as well. Not sure anymore what caused it to start working again then.
The issue seems to be a bit random; once the Convex CLI is in this state it isn't resolved by switching to a stable branch (e.g. main) and rerunning convex dev. It also doesn't seem to recover on its own; it stays in an InternalServerError loop indefinitely:

* Error: Unable to start push to https://<redacted slug>.convex.cloud
* Error fetching POST https://<redacted slug>.convex.cloud/api/deploy2/start_push 500 Internal Server Error: InternalServerError: Your request couldn’t be completed. Try again later.
Failed due to network error, retrying in 5.43s...
* Error: Unable to start push to https://<redacted slug>.convex.cloud
* Error fetching POST https://<redacted slug>.convex.cloud/api/deploy2/start_push 500 Internal Server Error: InternalServerError: Your request couldn’t be completed. Try again later.
Failed due to network error, retrying in 11.66s...
* Error: Unable to start push to https://<redacted slug>.convex.cloud
* Error fetching POST https://<redacted slug>.convex.cloud/api/deploy2/start_push 500 Internal Server Error: InternalServerError: Your request couldn’t be completed. Try again later.
Failed due to network error, retrying in 11.39s...
* Error: Unable to start push to https://<redacted slug>.convex.cloud
* Error fetching POST https://<redacted slug>.convex.cloud/api/deploy2/start_push 500 Internal Server Error: InternalServerError: Your request couldn’t be completed. Try again later.

Think I'll be able to resolve this by clearing cache or creating a new dev deployment, but would appreciate help with this

#

Ah, it just recovered on its own! But only after looping in this state for more than 3 minutes 🤔 Is this caused by some temporary server side issue?

turbid mesa
#

going through the most basic chat tutorial getting this:

`❯ npm run dev

convex-tutorial@0.0.0 predev
convex dev --once

✔ Provisioned a dev deployment and saved its name as CONVEX_DEPLOYMENT to .env.local

Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or support@convex.dev
View the Convex dashboard at https://dashboard.convex.dev/d/perceptive-bullfrog-52

Retrying request (attempt 3/6)...
Retrying request (attempt 3/6)...
Retrying request (attempt 4/6)...
⠸ Downloading current deployment state...
⠧ Downloading current deployment state...
Retrying request (attempt 5/6)...
⠋ Downloading current deployment state...
Retrying request (attempt 6/6)...
✖ Error: Unable to pull deployment config from https://perceptive-bullfrog-52.convex.cloud
✖ TypeError: fetch failed
Failed due to network error, retrying in 529.95ms...
⠹ Downloading current deployment state...
Retrying request (attempt 3/6)...
⠹ Downloading current deployment state...
Retrying request (attempt 4/6)...
⠼ Downloading current deployment state...
Retrying request (attempt 5/6)...
⠏ Downloading current deployment state...
Retrying request (attempt 6/6)...
✖ Error: Unable to pull deployment config from https://perceptive-bullfrog-52.convex.cloud
✖ TypeError: fetch failed
Failed due to network error, retrying in 645.86ms...`