garrytan/gstack · error · BrowseClientError
browse-client: command "${cmd}" failed with status ${resp.st
Error message
browse-client: command "${cmd}" failed with status ${resp.status} What it means
Error "browse-client: command "${cmd}" failed with status ${resp.status}" thrown in garrytan/gstack.
Source
Thrown at browse/src/browse-client.ts:186
if (err.name === 'TimeoutError' || err.name === 'AbortError') {
throw new BrowseClientError(`browse-client: command "${cmd}" timed out after ${this.timeoutMs}ms`);
}
if (err.code === 'ECONNREFUSED') {
throw new BrowseClientError(`browse-client: daemon not running on port ${this.port}`);
}
throw new BrowseClientError(`browse-client: ${err.message ?? err}`);
}
const text = await resp.text();
if (!resp.ok) {
let message = `browse-client: command "${cmd}" failed with status ${resp.status}`;
try {
const parsed = JSON.parse(text);
if (parsed.error) message += `: ${parsed.error}`;
} catch {
if (text) message += `: ${text.slice(0, 200)}`;
}
throw new BrowseClientError(message, resp.status, text);
}
return text;
}
// ─── Navigation ─────────────────────────────────────────────────
async goto(url: string): Promise<string> { return this.command('goto', [url]); }
async wait(arg: string): Promise<string> { return this.command('wait', [arg]); }
// ─── Reading ────────────────────────────────────────────────────
async text(selector?: string): Promise<string> {
return this.command('text', selector ? [selector] : []);
}
async html(selector?: string): Promise<string> {
return this.command('html', selector ? [selector] : []);
}
async links(): Promise<string> { return this.command('links'); }View on GitHub (pinned to 94993f7401)
When it happens
Trigger: Thrown at browse/src/browse-client.ts:186 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of garrytan/gstack@94993f7401 (2026-08-12).
Data as JSON: /api/errors/3b4b68309a544932.
Report an issue: GitHub.