-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Labels
webRelates to opencode on web / desktopRelates to opencode on web / desktop
Description
Description
When running opencode web, the web interface displays the following error:
{"name":"UnknownError","data":{"message":"Error: The response redirected too many times. For more information, pass `verbose: true` in the second argument to fetch()"}}This error appears to occur when connecting to OpenCode server from the web interface.
Steps to Reproduce
- Run
opencode web - Open the web interface in browser
- The error is displayed on the page
OpenCode Version
1.0.152
Environment
- OS: Linux
- Browser: Chrome (based on error format similar to JSON error responses)
- Command:
opencode web
Context
This appears to be a redirect loop occurring between the web client and OpenCode server. The error message suggests using verbose: true for debugging, but this is not a standard JavaScript fetch() option - it appears to be a custom OpenCode feature that may not be documented.
Related Issues
- Issue wsl opencode serve show UnknownError #6277: Similar "redirected too many times" error with
opencode serveandopencode web- Closed (resolved in v1.0.207) - Current version: 1.0.152 (older than the fix in wsl opencode serve show UnknownError #6277)
Notes
The error persists even after the fix mentioned in #6277, suggesting either:
- The fix was not backported or regressed
- This is a different underlying issue causing similar symptoms
- The redirect loop detection logic needs improvement or better error messaging
The verbose: true suggestion in the error message indicates there may be additional debugging options available, but users are not aware of them. If such options exist, they should be documented.
Metadata
Metadata
Assignees
Labels
webRelates to opencode on web / desktopRelates to opencode on web / desktop