Skip to content

The program reports an error when starting OpenCode #30161

@chenkehao1998

Description

@chenkehao1998

Description

The program reports an error when starting OpenCode

the log is
ERROR 2026-06-01T02:24:48 +2ms service=server error=JSON Parse error: Unrecognized token '<' cause=SyntaxError: JSON Parse error: Unrecognized token '<'
at (:0)
at parse (unknown)
at FileSystem.readJson (B:/~BUN/root/chunk-9p1szj7v.js:398:9064)
at FileSystem.readJson (definition) (B:/~BUN/root/chunk-mnvqa52h.js:6:14550)
at ModelsDev.populate (B:/~BUN/root/chunk-9p1szj7v.js:398:9626)
at Provider.list (B:/~BUN/root/chunk-jamvve56.js:9:66759)
at Provider.list (definition) (B:/~BUN/root/chunk-9p1szj7v.js:519:62929)
at ConfigHttpApi.providers (B:/~BUN/root/chunk-jamvve56.js:2:73378)
at ConfigHttpApi.providers (definition) (B:/~BUN/root/chunk-jamvve56.js:9:66701) failed
INFO 2026-06-01T02:24:48 +0ms service=default http.method=GET http.url=/provider http.status=500 logSpan.http.span.4=71ms Sent HTTP response
ERROR 2026-06-01T02:24:48 +0ms service=server error=JSON Parse error: Unrecognized token '<' cause=SyntaxError: JSON Parse error: Unrecognized token '<'
at (:0)
at parse (unknown)
at FileSystem.readJson (B:/~BUN/root/chunk-9p1szj7v.js:398:9064)
at FileSystem.readJson (definition) (B:/~BUN/root/chunk-mnvqa52h.js:6:14550)
at ModelsDev.populate (B:/~BUN/root/chunk-9p1szj7v.js:398:9626)
at Provider.list (B:/~BUN/root/chunk-jamvve56.js:9:66759)
at Provider.list (definition) (B:/~BUN/root/chunk-9p1szj7v.js:519:62929)
at ConfigHttpApi.providers (B:/~BUN/root/chunk-jamvve56.js:2:73378)
at ConfigHttpApi.providers (definition) (B:/~BUN/root/chunk-jamvve56.js:9:66701) failed
INFO 2026-06-01T02:24:48 +0ms service=default http.method=GET http.url=/config/providers http.status=500 logSpan.http.span.3=71ms Sent HTTP response
INFO 2026-06-01T02:24:48 +3ms service=default http.method=GET http.url=/session http.status=200 logSpan.http.span.8=2ms Sent HTTP response
INFO 2026-06-01T02:24:48 +10ms service=default http.method=GET http.url=/agent http.status=200 logSpan.http.span.6=83ms Sent HTTP response
ERROR 2026-06-01T02:24:48 +501ms service=default error=2 of 5 requests failed: config.providers: SyntaxError: JSON Parse error: Unrecognized token '<'
at (:0)
at parse (unknown)
at ~effect/Effect/successCont (B:/~BUN/root/chunk-zej5fpgx.js:25:7736)
at runLoop (B:/~BUN/root/chunk-zej5fpgx.js:25:2045)
at evaluate (B:/~BUN/root/chunk-zej5fpgx.js:25:1435)
at (B:/~BUN/root/chunk-zej5fpgx.js:25:5589)
at (B:/~BUN/root/chunk-mnvqa52h.js:2:7991)
at (node:fs:225:13)
at processTicksAndRejections (native:7:39); provider.list: SyntaxError: JSON Parse error: Unrecognized token '<'
at (:0)
at parse (unknown)
at ~effect/Effect/successCont (B:/~BUN/root/chunk-zej5fpgx.js:25:7736)
at runLoop (B:/~BUN/root/chunk-zej5fpgx.js:25:2045)
at evaluate (B:/~BUN/root/chunk-zej5fpgx.js:25:1435)
at (B:/~BUN/root/chunk-zej5fpgx.js:25:5589)
at (B:/~BUN/root/chunk-mnvqa52h.js:2:7991)
at (node:fs:225:13)
at processTicksAndRejections (native:7:39) name=Error stack=Error: 2 of 5 requests failed: config.providers: SyntaxError: JSON Parse error: Unrecognized token '<'
at (:0)
at parse (unknown)
at ~effect/Effect/successCont (B:/~BUN/root/chunk-zej5fpgx.js:25:7736)
at runLoop (B:/~BUN/root/chunk-zej5fpgx.js:25:2045)
at evaluate (B:/~BUN/root/chunk-zej5fpgx.js:25:1435)
at (B:/~BUN/root/chunk-zej5fpgx.js:25:5589)
at (B:/~BUN/root/chunk-mnvqa52h.js:2:7991)
at (node:fs:225:13)
at processTicksAndRejections (native:7:39); provider.list: SyntaxError: JSON Parse error: Unrecognized token '<'
at (:0)
at parse (unknown)
at ~effect/Effect/successCont (B:/~BUN/root/chunk-zej5fpgx.js:25:7736)
at runLoop (B:/~BUN/root/chunk-zej5fpgx.js:25:2045)
at evaluate (B:/~BUN/root/chunk-zej5fpgx.js:25:1435)
at (B:/~BUN/root/chunk-zej5fpgx.js:25:5589)
at (B:/~BUN/root/chunk-mnvqa52h.js:2:7991)
at (node:fs:225:13)
at processTicksAndRejections (native:7:39)
at ej (B:/~BUN/root/chunk-5e1nbvt1.js:469:644)
at (B:/~BUN/root/chunk-5e1nbvt1.js:469:6060)
at processTicksAndRejections (native:7:39) tui bootstrap failed

At present, it is speculated that the request providers' access is restricted by the network. Can it support the operation of a query blocking program without prior query by simply configuring a custom model

The historical version runs normally, it seems to be caused by an upgrade

Plugins

No response

OpenCode version

1.14.48

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions