Skip to content
← Back to activity

Public problem

lep login fails: Invalid URL /api/v1/workspace

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

lep login fails with Invalid URL '/api/v1/workspace' followed by a traceback through click. I installed the latest leptonai with pip install -U leptonai. What is wrong?

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

This is caused by a stale local workspace record on your machine, not your login itself. Make sure you have registered an account and opened a workspace at lepton.ai first, then upgrade to the latest leptonai package, list your workspaces with lep workspace list, and remove the local workspace record. After deleting the local workspace the login goes through fine. Source: https://github.com/leptonai/leptonai/issues/432

Source: https://github.com/leptonai/leptonai/issues/432