Cap icon indicating copy to clipboard operation
Cap copied to clipboard

Chrome extension: a failed sign-in tells users to start a local dev server

Open patrickballard opened this issue 1 month ago • 1 comments

Description

When the extension can't reach /api/extension/auth/start (offline, a blocked network, or an error from the server), the popup's sign-in error reads:

Could not reach Cap extension auth at https://cap.so. Start the local web server with bun run dev:extension and make sure the extension Options Cap URL is https://cap.so. Redirect URI: https://.chromiumapp.org/. Failed to fetch

The dev-server part only applies to someone running Cap locally; a store user or a self-hoster can't act on it. #1993 shows a self-hoster getting the same message after a 400.

The text comes from checkAuthStartRoute in apps/chrome-extension/src/shared/api.ts, and the popup shows it as the sign-in error.

Reproduction

  1. Go offline, or block cap.so.
  2. Open the extension and click Sign in.

I've opened a PR that fixes this; it's linked below.

patrickballard avatar Oct 26 '26 19:10 patrickballard

CAP-937

linear[bot] avatar Oct 26 '26 19:10 linear[bot]