chickenbuy
chickenbuy3mo ago

Unable to connect to Convex through CLI

I have been using Convex for a few weeks now. Somehow my local machine got logged out and now when I try to login again through the CLI I get the following error: Unknown error during authorization: Error: Error fetching POST https://api.convex.dev/api/deployment/provision_and_authorize 401 Unauthorized: AuthenticationFailed: A valid access token is required for this command. I have tried logging out and back in various ways but to no avail. Any suggestions or troubleshooting to resolve this issue? I'm able to log in to the Convex dashboard just fine.
2 Replies
Convex Bot
Convex Bot3mo ago
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 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!
chickenbuy
chickenbuyOP3mo ago
I am on a Windows 11 machine. Deleting the CONVEX_DEPLOY_KEY from my env.local seemed to resolve the issue. I had changed the project slug yesterday so maybe related?

Did you find this page helpful?