mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
8d21a38588
`bm cloud login` only caught SubscriptionRequiredError after the post-login `/proxy/health` subscription check. OAuth succeeds and tokens are saved, but if that check returns anything else — a 5xx while the tenant instance is still provisioning, a 403/401 whose body doesn't match the subscription_required shape, or a transport error — make_api_request raises a generic CloudAPIError that escaped uncaught, dumping a raw httpx.raise_for_status traceback. Users read this as "login failed" even though authentication actually worked. Add a CloudAPIError handler that prints a clean, actionable message and exits non-zero. make_api_request wraps every httpx error (status and transport) in CloudAPIError, so the single handler covers them all. Fixes #863. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>