Description
On a plain local install (no daemonUrl and no authUrl configured), running any npubs command crashes with an unhandled error that has nothing to do with what the user typed.
Steps to reproduce
routstrd onboard # standard local setup, no remote/auth proxy
routstrd npubs list
Output:
76 | body: bodyString,
77 | });
78 |
79 | if (!response.ok) {
80 | const errorData = (await response.json()) as { error?: string };
81 | throw new Error(errorData.error || `HTTP ${response.status}`);
^
error: Only POST is supported.
at /Users/bilthon/Development/Routstr/routstrd/src/utils/daemon-client.ts:81:11
Bun v1.1.42 (macOS arm64)
Expected result
A clear message explaining that npubs requires a routstrd-auth server, e.g.
Environment
- routstrd dev build (local
bun link)
- Bun v1.1.42, macOS arm64
Description
On a plain local install (no
daemonUrland noauthUrlconfigured), running anynpubscommand crashes with an unhandled error that has nothing to do with what the user typed.Steps to reproduce
routstrd onboard # standard local setup, no remote/auth proxy routstrd npubs listOutput:
Expected result
A clear message explaining that
npubsrequires a routstrd-auth server, e.g.Environment
bun link)