Description
How to replicate
- Setup the server
opencode serve --port 4096 --hostname 0.0.0.0
- Run client
opencode run --server "http://localhost:4096" ✔
- Error
[19:25:20.667] ERROR (#1): Error: Server at http://localhost:4096 did not provide a compatible V2 health response
at ~effect/Utils/internal (/$bunfs/root/chunk-7a22e4a2.js:8:1540)
at s (/$bunfs/root/chunk-7a22e4a2.js:24:5696)
at processTicksAndRejections (native:7:39)
at cli.server-connection.resolve (/$bunfs/root/chunk-t9yvjesk.js:2:900)
at cli.server-connection.resolve (definition) (/$bunfs/root/chunk-fetwdtfr.js:2:399) {
[cause]: ClientError: UnsupportedContentType
at S (/$bunfs/root/chunk-kpb3c462.js:13:25549)
at async (/$bunfs/root/chunk-kpb3c462.js:2:912)
at processTicksAndRejections (native:7:39)
}
Following returns 404 response
curl -i -u opencode: http://localhost:4096/api/health
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
How to replicate
opencode serve --port 4096 --hostname 0.0.0.0
opencode run --server "http://localhost:4096" ✔
[19:25:20.667] ERROR (#1): Error: Server at http://localhost:4096 did not provide a compatible V2 health response
at ~effect/Utils/internal (/$bunfs/root/chunk-7a22e4a2.js:8:1540)
at s (/$bunfs/root/chunk-7a22e4a2.js:24:5696)
at processTicksAndRejections (native:7:39)
at cli.server-connection.resolve (/$bunfs/root/chunk-t9yvjesk.js:2:900)
at cli.server-connection.resolve (definition) (/$bunfs/root/chunk-fetwdtfr.js:2:399) {
[cause]: ClientError: UnsupportedContentType
at S (/$bunfs/root/chunk-kpb3c462.js:13:25549)
at async (/$bunfs/root/chunk-kpb3c462.js:2:912)
at processTicksAndRejections (native:7:39)
}
The server is sending back html pages. The below should return a json
curl -i -u opencode: http://localhost:4096/global/health
Following returns 404 response
curl -i -u opencode: http://localhost:4096/api/health
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response