GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Unexpected end of json · Issue #7715 · anomalyco/opencode

Unexpected end of json #7715

New issue
Copy link
New issue
Copy link
Closed
#8921
Closed
Unexpected end of json#7715
#8921
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't working

Description

@Davincible
Davincible
opened on Jan 10, 2026
Issue body actions

Description

Image

Seems like #7618 is the fix

Plugins

No response

OpenCode version

1.1.10

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. Davincible
    added
    bugSomething isn't working
    on Jan 10, 2026
  2. github-actions
    assigned
    rekram1-node
    on Jan 10, 2026
  3. github-actions commented on Jan 10, 2026

    @github-actions
    github-actionsBot
    on Jan 10, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • JSON parsing failed: Text #2188: JSON parsing failed: Text
    • [aws bedrock: anthropic opus 4.1] The arguments provided to the tool are invalid: Invalid input for tool write: JSON parsing failed: Text #1803: [aws bedrock: anthropic opus 4.1] The arguments provided to the tool are invalid: Invalid input for tool write: JSON parsing failed: Text
    • task tool "SyntaxError: Unexpected end of JSON input" #3034: task tool "SyntaxError: Unexpected end of JSON input"
    • [Bug] JSON Parse Error with Zhipu GLM-4.7: Stream chunks are concatenated incorrectly #7692: [Bug] JSON Parse Error with Zhipu GLM-4.7: Stream chunks are concatenated incorrectly
    • Incomplete JSON when writing out files #5890: Incomplete JSON when writing out files

    Feel free to ignore if none of these address your specific case.

  4. coleleavitt commented on Jan 12, 2026

    @coleleavitt
    coleleavitt
    on Jan 12, 2026
    Contributor
    More actions

    I've submitted a fix for this in #7888.

    Root cause: The SDK's client.gen.ts only handles empty responses when status === 204 or Content-Length === "0". When the server returns an empty body with status 200 and no Content-Length header, response.json() throws "Unexpected end of JSON input".

    Fix:

    1. Read response as text first, only parse JSON if non-empty
    2. Added try-catch with contextual error messages
    3. Fixed server OPTIONS handler to return proper 204 status

    This is a more complete fix than #7618 - it prevents the crash entirely rather than just improving the error message.

    Reacted by David Brouwer
  5. mrlubos commented on Jan 13, 2026

    @mrlubos
    mrlubos
    on Jan 13, 2026
    Contributor
    More actions

    @Davincible this should be handled upstream hey-api/hey-api#3202

  6. coleleavitt
    added a commit that references this issue on Jan 16, 2026

    chore(sdk): update @hey-api/openapi-ts to 0.90.4

    This issue will close once commit 927c494 is merged into the 'dev' branch.
    927c494
  7. rekram1-node
    closed this as completedin #8921on Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.