Skip to content

Internal Server Error #35486

Closed as not planned
Closed as not planned

Description

@tthoele89

Description

Even with a new session, clearing cache, I get "internal server error" with DeepSeek v4 Flash.

Plugins

No response

OpenCode version

1.17.13

Steps to reproduce

  1. Launch OpenCode Go in a window with Admin privs.
  2. Connect to opencode with known good key and subscription.
  3. Start a new session even with a basic "hello".
  4. Fails with "Internal Server Error."

Screenshot and/or share link

Image Image

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. github-actions commented on Jul 5, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Please review these issues to see if your problem is already tracked there.

  2. opencodevibrant commented on Jul 5, 2026

    @opencodevibrant

    Same issue for me on DeepSeek V4 Flash and MiMo-V2.5. Any new chat and some existing chats shows internal server error.

  3. asrone-builder commented on Jul 5, 2026

    @asrone-builder

    same issue, fro mimo 2.5, and deepseek v4

  4. rustykris commented on Jul 5, 2026

    @rustykris

    same here, for DeepSeek V4 Flash + MiMo-V2.5

    tested MiniMax M2.7, Qwen3.6 Plus and these responded correctly

  5. willoak commented on Jul 6, 2026

    @willoak

    No provider available
    kimi k2.7 code

  6. aadielpr commented on Jul 6, 2026

    @aadielpr

    same here, mimo 2.5 and deepseek from opencode-go provider, shows internal server error. i try the other providers, and its working.

    Device: Mac OS
    Opencode (TUI) version: 1.17.13
    Plugin: Nothing
    Server: Singapore

    Image Image Image
  7. hrodriguez72 commented on Jul 6, 2026

    @hrodriguez72

    Same thing using opencode Go suscription from Opencode CLI 1.17.13 affecting all models. Same message: API call failed after 3 retries: HTTP 500: Internal server error".

  8. dattarohu-coder commented on Jul 6, 2026

    @dattarohu-coder

    same, with deepseek 4 flash

  9. fahadabdulaziz commented on Jul 6, 2026

    @fahadabdulaziz

    same here, I noticed:
    DeepSeek v4 Flash/Pro = Internal Server error
    DeepSeek v4 Flash Free = working !

  10. asimons81 commented on Jul 6, 2026

    @asimons81

    Confirmed via direct API testing of /zen/go/v1 — this is model-specific, not a general Go outage.

    Models returning 500:

    • deepseek-v4-flash
    • deepseek-v4-pro
    • minimax-m2.5

    Models working (same key, same endpoint):

    • qwen3.5-plus

    Quick repro:
    curl -s -X POST https://opencode.ai/zen/go/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer $KEY" -d '{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"hi"}],"max_tokens":5}'

    Returns 500. Same call with qwen3.5-plus returns a valid completion. Models endpoint lists them all fine — the inference backends for DeepSeek/MiniMax are the problem.

  11. yaephin commented on Jul 6, 2026

    @yaephin
    Image

    这也太烂了吧,一个月断几次,服务器太垃圾了

  12. asimons81 commented on Jul 6, 2026

    @asimons81

    Seems to be back up and working now.

  13. PawelGIX commented on Jul 27, 2026

    @PawelGIX

    Im getting AI_APICallError: Internal server error on big-pickle for week now.
    Sometimes it works sometimes it doesn't work.
    Lately it doesn't work more often.

    Does anyone else experience these types of problems?

    Screen.Recording.2026-07-27.at.11.35.27.mp4
  14. ajaxharg commented on Sep 5, 2026

    @ajaxharg

    Adding my experience — this matches what I've been seeing, confirmed via my own logs.

    Environment: macOS (arm64), opencode 1.18.25, model opencode-go/qwen3.8-flash & GLM through ollama

    Log evidence (~/.local/share/opencode/log/opencode.log): 123 occurrences of AI_APICallError: Internal server error over Aug 30 – Sep 5, all from providerID=opencode-go modelID=qwen3.8-flash, interleaved with Error from provider (Console Go): Upstream request failed: Endpoint is unavailable. No other provider in my config shows this error pattern. Errors appear in clusters every few hours — consistent with intermittent upstream backend failures for specific models, as described by earlier commenters.

    Impact on sessions: When the stream dies mid-run, the errored assistant message is persisted in the session DB, and subsequent turns appear to re-send that broken tail, so the session stays broken even after switching models or restarting the app. Only /undo (or a new session) recovers it. IMO a provider 500 shouldn't be able to leave a session in a state that survives model switching — worth a defensive fix client-side.

    One more data point: I've been using opencode daily for quite a few months and never saw this issue until recently — it started appearing in the last few weeks and is now recurring on a regular basis.

  15. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions