happy icon indicating copy to clipboard operation
happy copied to clipboard

Error: Request failed with status code 404

Open neil-rubens opened this issue 11 months ago • 17 comments

$ happy
Error: Request failed with status code 404

neil-rubens avatar Jan 01 '26 03:01 neil-rubens

Same problem

hubingkang avatar Jan 01 '26 03:01 hubingkang

🔍 Analysis Report

I encountered the same issue and performed a detailed investigation. Here are my findings:

Environment

  • OS: Windows 10 (win32 x64)
  • Node.js: v20.19.3
  • happy-coder version: 0.13.0 (latest)
  • Server URL: https://api.cluster-fluster.com

Root Cause

This is a server-side issue, not a client-side problem.

I tested the server connectivity directly:

$ curl -I https://api.cluster-fluster.com

HTTP/1.1 404 Not Found
Server: cloudflare
CF-RAY: 9b6f3d98aaf206e0-AMS

The server itself returns a 404 Not Found response, which confirms that:

  1. ✅ Network connectivity is working fine
  2. ❌ The API endpoint is not responding correctly on the server side

Additional Observations from Logs

  • happy doctor shows the daemon is running correctly
  • Authentication credentials are valid
  • Multiple TransportError and WebSocket disconnection events in daemon logs
  • The error occurs immediately after the CLI starts, during the initial API handshake

Workaround

While waiting for a fix, you can use the standard claude CLI directly:

claude --dangerously-skip-permissions  # or other flags you need

Suggested Fix

The server team should investigate:

  1. API endpoint routing configuration
  2. Whether there was a recent deployment that affected the root endpoint
  3. Health check status of api.cluster-fluster.com

Hope this helps with debugging! 🙏

EucalyZ avatar Jan 01 '26 04:01 EucalyZ

same problem.

sglim avatar Jan 01 '26 06:01 sglim

same problem.

lishangwl avatar Jan 01 '26 06:01 lishangwl

Same.

jooneyp avatar Jan 01 '26 06:01 jooneyp

same problem.

wu529778790 avatar Jan 01 '26 11:01 wu529778790

Gotta be some NYE mass capacity loss or some weird bug related to the new year?

zkwentz avatar Jan 01 '26 12:01 zkwentz

Same

louis-cai avatar Jan 02 '26 01:01 louis-cai

Seems to be working now

Camcdonou avatar Jan 02 '26 16:01 Camcdonou

it is working for me now; so am closing

neil-rubens avatar Jan 03 '26 12:01 neil-rubens

No still broken [AUTH DEBUG] Sending auth request to: https://api.cluster-fluster.com/v1/auth/request [AUTH DEBUG] Public key: BHgzsxgPMhHI74D... [AUTH DEBUG] Failed to send auth request: AxiosError: read ECONNRESET

https://api.cluster-fluster.com/v1/auth/request server down

sstraus avatar Jan 03 '26 15:01 sstraus

@sstraus I think that's a different error

you may want to try upgrading: npm i -g happy-coder as per: https://discord.com/channels/1445849541181050956/1445849542191743208/1453637025780732018

neil-rubens avatar Jan 04 '26 00:01 neil-rubens

Same error, nothing changes

[AUTH DEBUG] Sending auth request to: https://api.cluster-fluster.com/v1/auth/request [AUTH DEBUG] Public key: dUhHPXIKdWYNiEKABhze... [AUTH DEBUG] Failed to send auth request: AxiosError: read ECONNRESET at AxiosError.from (file:///opt/homebrew/lib/node_modules/happy-coder/node_modules/axios/lib/core/AxiosError.js:96:14) at RedirectableRequest.handleRequestError (file:///opt/homebrew/lib/node_modules/happy-coder/node_modules/axios/lib/adapters/http.js:817:25) at RedirectableRequest.emit (node:events:508:28) at eventHandlers. (/opt/homebrew/lib/node_modules/happy-coder/node_modules/follow-redirects/index.js:49:24) at ClientRequest.emit (node:events:508:28) at emitErrorEvent (node:_http_client:108:11) at TLSSocket.socketErrorListener (node:_http_client:575:5) at TLSSocket.emit (node:events:508:28) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at Axios.request (file:///opt/homebrew/lib/node_modules/happy-coder/node_modules/axios/lib/core/Axios.js:45:41) at process.processTicksAndRejections (node:internal/process/task_queues:103:5) at async doAuth (file:///opt/homebrew/lib/node_modules/happy-coder/dist/index-B3gQr6vs.mjs:3993:5) at async authAndSetupMachineIfNeeded (file:///opt/homebrew/lib/node_modules/happy-coder/dist/index-B3gQr6vs.mjs:4152:24) at async file:///opt/homebrew/lib/node_modules/happy-coder/dist/index-B3gQr6vs.mjs:6468:9 { syscall: 'read', code: 'ECONNRESET', errno: -54, [...] method: 'post', url: 'https://api.cluster-fluster.com/v1/auth/request', data: '{"publicKey":"dUhHPXIKdWYNiEKABhzeX2xS0wF8K7k09fizWrpU7QY=","supportsV2":true}', allowAbsoluteUrls: true }, [...] }, [cause]: Error: read ECONNRESET at TLSWrap.onStreamRead (node:internal/stream_base_commons:216:20) { errno: -54, code: 'ECONNRESET', syscall: 'read' } } Failed to create authentication request, please try again later. file:///opt/homebrew/lib/node_modules/happy-coder/dist/index-B3gQr6vs.mjs:4154 throw new Error("Authentication failed or was cancelled"); ^

Error: Authentication failed or was cancelled at authAndSetupMachineIfNeeded (file:///opt/homebrew/lib/node_modules/happy-coder/dist/index-B3gQr6vs.mjs:4154:13) at process.processTicksAndRejections (node:internal/process/task_queues:103:5) at async file:///opt/homebrew/lib/node_modules/happy-coder/dist/index-B3gQr6vs.mjs:6468:9

sstraus avatar Jan 04 '26 07:01 sstraus

404 is happening again, am re-opening the issue

neil-rubens avatar Jan 04 '26 23:01 neil-rubens

@sstraus you may need to join discord first: https://discord.gg/Pczy9HuZf)

neil-rubens avatar Jan 04 '26 23:01 neil-rubens

Solved was a DNS problem with the happy domain. Thanks. BTW can you invite me on discord? The link invite is expired.

sstraus avatar Jan 05 '26 18:01 sstraus

@sstraus please try this link: https://discord.gg/fX9WBAhyfD

neil-rubens avatar Jan 07 '26 09:01 neil-rubens