opencode-copilot-chat icon indicating copy to clipboard operation
opencode-copilot-chat copied to clipboard

v0.2.4 internal server error

Open bogdan-coman-uv opened this issue 5 months ago • 6 comments

I updated VSCode and the extension to the latest versions and now all the requests fail with "500: Internal server error". If I downgrade the extension to 0.2.3 it works. I tried with different models, it fails for all of them.

VSCode Version: 1.123.2 (user setup) Commit: 3c631b164c239e7aeaaae7c626b46c527b361af2 Date: 2026-06-09T15:06:40-07:00 Electron: 42.2.0 ElectronBuildId: 14159160 Chromium: 148.0.7778.97 Node.js: 24.15.0 V8: 14.8.178.14-electron.0 OS: Windows_NT x64 10.0.26200

OpenCode for GitHub Copilot Chat Identifier ltmoerdani.opencode-copilot-chat Version 0.2.4 Size 524.78KB

Below is the output: [2026-06-10T08:22:31.059Z] Request: initiator=github.copilot-chat model=opencodego:deepseek-v4-flash::session-2026-05-21-b rawModel=deepseek-v4-flash endpoint=chat-completions metadataSource=models.dev messages=166 session=vscode-c85cef4a request=req-9e3b48f6 modelConfiguration={"reasoningEffort":"off"} thinking={"deepseek":"off","glm":"off","kimi":"off","minimax":"off","qwen":"off","qwenBudget":"auto","mimo":"off"} thinkingPayload={} [request] url=https://opencode.ai/zen/go/v1/chat/completions payloadBytes=421205 requestTimeoutMs=600000 streamIdleTimeoutMs=120000 [gzip] 421205 → 89778 bytes (79% reduction) [http] 500 Internal Server Error content-type=text/plain;charset=UTF-8 [http-error-body] {"type":"error","error":{"type":"error","message":"Internal server error"}} [response-summary] status=500 durationMs=989 ttfbMs=n/a promptTokens=n/a completionTokens=n/a totalTokens=n/a cachedTokens=n/a finishReason= totalBytes=75 totalEvents=0 [2026-06-10T08:22:32.051Z] [go-usage] Recording: provider=OpenCode Go model=deepseek-v4-flash promptTokens=n/a completionTokens=n/a cachedTokens=n/a status=500 error=OpenCode Go API request failed (500) model=deepseek-v4-flash payloadBytes=89778: Internal server error [2026-06-10T08:22:32.051Z] [go-usage] After record: entries=79 [2026-06-10T08:22:32.051Z] ERROR model=opencodego:deepseek-v4-flash::session-2026-05-21-b: OpenCode Go API request failed (500) model=deepseek-v4-flash payloadBytes=89778: Internal server error [2026-06-10T08:22:33.192Z] Request: initiator=github.copilot-chat model=opencodego:deepseek-v4-flash::session-2026-05-21-b rawModel=deepseek-v4-flash endpoint=chat-completions metadataSource=models.dev messages=166 session=vscode-c85cef4a request=req-9d3dc234 modelConfiguration={"reasoningEffort":"off"} thinking={"deepseek":"off","glm":"off","kimi":"off","minimax":"off","qwen":"off","qwenBudget":"auto","mimo":"off"} thinkingPayload={} [request] url=https://opencode.ai/zen/go/v1/chat/completions payloadBytes=421205 requestTimeoutMs=600000 streamIdleTimeoutMs=120000 [gzip] 421205 → 89778 bytes (79% reduction) [http] 500 Internal Server Error content-type=text/plain;charset=UTF-8 [http-error-body] {"type":"error","error":{"type":"error","message":"Internal server error"}} [response-summary] status=500 durationMs=333 ttfbMs=n/a promptTokens=n/a completionTokens=n/a totalTokens=n/a cachedTokens=n/a finishReason= totalBytes=75 totalEvents=0 [2026-06-10T08:22:33.527Z] [go-usage] Recording: provider=OpenCode Go model=deepseek-v4-flash promptTokens=n/a completionTokens=n/a cachedTokens=n/a status=500 error=OpenCode Go API request failed (500) model=deepseek-v4-flash payloadBytes=89778: Internal server error [2026-06-10T08:22:33.527Z] [go-usage] After record: entries=79 [2026-06-10T08:22:33.529Z] ERROR model=opencodego:deepseek-v4-flash::session-2026-05-21-b: OpenCode Go API request failed (500) model=deepseek-v4-flash payloadBytes=89778: Internal server error [2026-06-10T08:22:34.652Z] Request: initiator=github.copilot-chat model=opencodego:deepseek-v4-flash::session-2026-05-21-b rawModel=deepseek-v4-flash endpoint=chat-completions metadataSource=models.dev messages=166 session=vscode-c85cef4a request=req-f564f125 modelConfiguration={"reasoningEffort":"off"} thinking={"deepseek":"off","glm":"off","kimi":"off","minimax":"off","qwen":"off","qwenBudget":"auto","mimo":"off"} thinkingPayload={} [request] url=https://opencode.ai/zen/go/v1/chat/completions payloadBytes=421205 requestTimeoutMs=600000 streamIdleTimeoutMs=120000 [gzip] 421205 → 89778 bytes (79% reduction) [http] 500 Internal Server Error content-type=text/plain;charset=UTF-8 [http-error-body] {"type":"error","error":{"type":"error","message":"Internal server error"}} [response-summary] status=500 durationMs=472 ttfbMs=n/a promptTokens=n/a completionTokens=n/a totalTokens=n/a cachedTokens=n/a finishReason= totalBytes=75 totalEvents=0 [2026-06-10T08:22:35.124Z] [go-usage] Recording: provider=OpenCode Go model=deepseek-v4-flash promptTokens=n/a completionTokens=n/a cachedTokens=n/a status=500 error=OpenCode Go API request failed (500) model=deepseek-v4-flash payloadBytes=89778: Internal server error [2026-06-10T08:22:35.125Z] [go-usage] After record: entries=79 [2026-06-10T08:22:35.127Z] ERROR model=opencodego:deepseek-v4-flash::session-2026-05-21-b: OpenCode Go API request failed (500) model=deepseek-v4-flash payloadBytes=89778: Internal server error [2026-06-10T08:22:36.280Z] Request: initiator=github.copilot-chat model=opencodego:deepseek-v4-flash::session-2026-05-21-b rawModel=deepseek-v4-flash endpoint=chat-completions metadataSource=models.dev messages=166 session=vscode-c85cef4a request=req-30d35bbd modelConfiguration={"reasoningEffort":"off"} thinking={"deepseek":"off","glm":"off","kimi":"off","minimax":"off","qwen":"off","qwenBudget":"auto","mimo":"off"} thinkingPayload={} [request] url=https://opencode.ai/zen/go/v1/chat/completions payloadBytes=421205 requestTimeoutMs=600000 streamIdleTimeoutMs=120000 [gzip] 421205 → 89778 bytes (79% reduction) [http] 500 Internal Server Error content-type=text/plain;charset=UTF-8 [http-error-body] {"type":"error","error":{"type":"error","message":"Internal server error"}} [response-summary] status=500 durationMs=332 ttfbMs=n/a promptTokens=n/a completionTokens=n/a totalTokens=n/a cachedTokens=n/a finishReason= totalBytes=75 totalEvents=0 [2026-06-10T08:22:36.613Z] [go-usage] Recording: provider=OpenCode Go model=deepseek-v4-flash promptTokens=n/a completionTokens=n/a cachedTokens=n/a status=500 error=OpenCode Go API request failed (500) model=deepseek-v4-flash payloadBytes=89778: Internal server error [2026-06-10T08:22:36.614Z] [go-usage] After record: entries=79 [2026-06-10T08:22:36.614Z] ERROR model=opencodego:deepseek-v4-flash::session-2026-05-21-b: OpenCode Go API request failed (500) model=deepseek-v4-flash payloadBytes=89778: Internal server error

bogdan-coman-uv avatar Jun 10 '26 08:06 bogdan-coman-uv

我遇到了相同问题,更新后报错,目前暂时回退到了V0.2.3版本

hyh112300 avatar Jun 10 '26 08:06 hyh112300

Facing the same issue , it was working fine since yesterday curl https://opencode.ai/zen/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer API_KEY" \ -d '{ "model": "deepseek-v4-flash-free", "messages": [ { "role": "user", "content": "Hello, are you working?" } ] }'

The above command works fine

varad-uptiq avatar Jun 10 '26 09:06 varad-uptiq

Downgrading to v0.2.3 also works

Happypig375 avatar Jun 10 '26 09:06 Happypig375

Hi everyone, thanks for reporting this! 🔍

Root cause: v0.2.4 introduced gzip compression (Content-Encoding: gzip) for outgoing API requests. Unfortunately, the OpenCode proxy does not support gzip-encoded request bodies and returns HTTP 500 when it receives them.

Fixed in v0.2.6 — both gzip compression and the message trimming feature have been removed entirely. All requests now send raw JSON payloads, same as v0.2.3.

I'm keeping this issue open for now, please comment back to confirm everything works after updating to v0.2.6, so I can close it with confidence. 👍

Sorry for the inconvenience, and thanks for the patience! 🙏

ltmoerdani avatar Jun 10 '26 10:06 ltmoerdani

i had the same issue, updated to v0.2.6 as suggested and it works again, thanks for the quick fix

floozie avatar Jun 10 '26 10:06 floozie

It works now, after updating to v0.2.6.

Thank you for the quick fix

bogdan-coman-uv avatar Jun 10 '26 11:06 bogdan-coman-uv