Unexpected Errors v1.0.39 #2654

Closed
opened 2026-02-16 17:36:37 -05:00 by yindo · 11 comments
Owner

Originally created by @wojons on GitHub (Nov 6, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

INFO 2025-11-07T04:44:59 +1500ms service=default directory=/config/workspace/project disposing instance
INFO 2025-11-07T04:44:59 +1ms service=state key=/config/workspace/project waiting for state disposal to complete
INFO 2025-11-07T04:44:59 +0ms service=lsp.client serverID=pyright shutting down
INFO 2025-11-07T04:44:59 +1ms service=lsp.client serverID=pyright shutdown
INFO 2025-11-07T04:44:59 +1ms service=session.lock sessionID=ses_5a362c650ffeMWPo42HFTseo3f force abort
INFO 2025-11-07T04:44:59 +1ms service=state key=/config/workspace/project state disposal completed
ERROR 2025-11-07T04:44:59 +35ms service=default name=TimeoutError message=The operation timed out. stack= fatal
Error: Unexpected error, check log file at for more details

DOMException {
stack: "",
code: 23,
name: "TimeoutError",
message: "The operation timed out.",
INDEX_SIZE_ERR: 1,
DOMSTRING_SIZE_ERR: 2,
HIERARCHY_REQUEST_ERR: 3,
WRONG_DOCUMENT_ERR: 4,
INVALID_CHARACTER_ERR: 5,
NO_DATA_ALLOWED_ERR: 6,
NO_MODIFICATION_ALLOWED_ERR: 7,
NOT_FOUND_ERR: 8,
NOT_SUPPORTED_ERR: 9,
INUSE_ATTRIBUTE_ERR: 10,
INVALID_STATE_ERR: 11,
SYNTAX_ERR: 12,
INVALID_MODIFICATION_ERR: 13,
NAMESPACE_ERR: 14,
INVALID_ACCESS_ERR: 15,
VALIDATION_ERR: 16,
TYPE_MISMATCH_ERR: 17,
SECURITY_ERR: 18,
NETWORK_ERR: 19,
ABORT_ERR: 20,
URL_MISMATCH_ERR: 21,
QUOTA_EXCEEDED_ERR: 22,
TIMEOUT_ERR: 23,
INVALID_NODE_TYPE_ERR: 24,
DATA_CLONE_ERR: 25,
toString: [Function: toString],
}

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @wojons on GitHub (Nov 6, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description INFO 2025-11-07T04:44:59 +1500ms service=default directory=/config/workspace/project disposing instance INFO 2025-11-07T04:44:59 +1ms service=state key=/config/workspace/project waiting for state disposal to complete INFO 2025-11-07T04:44:59 +0ms service=lsp.client serverID=pyright shutting down INFO 2025-11-07T04:44:59 +1ms service=lsp.client serverID=pyright shutdown INFO 2025-11-07T04:44:59 +1ms service=session.lock sessionID=ses_5a362c650ffeMWPo42HFTseo3f force abort INFO 2025-11-07T04:44:59 +1ms service=state key=/config/workspace/project state disposal completed ERROR 2025-11-07T04:44:59 +35ms service=default name=TimeoutError message=The operation timed out. stack= fatal Error: Unexpected error, check log file at for more details DOMException { stack: "", code: 23, name: "TimeoutError", message: "The operation timed out.", INDEX_SIZE_ERR: 1, DOMSTRING_SIZE_ERR: 2, HIERARCHY_REQUEST_ERR: 3, WRONG_DOCUMENT_ERR: 4, INVALID_CHARACTER_ERR: 5, NO_DATA_ALLOWED_ERR: 6, NO_MODIFICATION_ALLOWED_ERR: 7, NOT_FOUND_ERR: 8, NOT_SUPPORTED_ERR: 9, INUSE_ATTRIBUTE_ERR: 10, INVALID_STATE_ERR: 11, SYNTAX_ERR: 12, INVALID_MODIFICATION_ERR: 13, NAMESPACE_ERR: 14, INVALID_ACCESS_ERR: 15, VALIDATION_ERR: 16, TYPE_MISMATCH_ERR: 17, SECURITY_ERR: 18, NETWORK_ERR: 19, ABORT_ERR: 20, URL_MISMATCH_ERR: 21, QUOTA_EXCEEDED_ERR: 22, TIMEOUT_ERR: 23, INVALID_NODE_TYPE_ERR: 24, DATA_CLONE_ERR: 25, toString: [Function: toString], } ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:36:37 -05:00
yindo closed this issue 2026-02-16 17:36:37 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 6, 2025):

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

  • #763: Reports frequent "TimeoutError: The operation timed out" with similar error patterns
  • #387: Shows the exact same error message format "Error: Unexpected error, check log file at" and similar service disposal logs
  • #1007: Reports DOMException errors during model interruption

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

@github-actions[bot] commented on GitHub (Nov 6, 2025): This issue might be a duplicate of existing issues. Please check: - #763: Reports frequent "TimeoutError: The operation timed out" with similar error patterns - #387: Shows the exact same error message format "Error: Unexpected error, check log file at" and similar service disposal logs - #1007: Reports DOMException errors during model interruption Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 7, 2025):

is this consistent ine?

@rekram1-node commented on GitHub (Nov 7, 2025): is this consistent ine?
Author
Owner

@edisonpaul4 commented on GitHub (Nov 7, 2025):

same error here

name: "TimeoutError",
message: "The operation timed out.",
INDEX_SIZE_ERR: 1,
DOMSTRING_SIZE_ERR: 2,
HIERARCHY_REQUEST_ERR: 3,
WRONG_DOCUMENT_ERR: 4,
INVALID_CHARACTER_ERR: 5,
NO_DATA_ALLOWED_ERR: 6,
NO_MODIFICATION_ALLOWED_ERR: 7,
NOT_FOUND_ERR: 8,
NOT_SUPPORTED_ERR: 9,
INUSE_ATTRIBUTE_ERR: 10,
INVALID_STATE_ERR: 11,
SYNTAX_ERR: 12,
INVALID_MODIFICATION_ERR: 13,
NAMESPACE_ERR: 14,
INVALID_ACCESS_ERR: 15,
VALIDATION_ERR: 16,
TYPE_MISMATCH_ERR: 17,
SECURITY_ERR: 18,
NETWORK_ERR: 19,
ABORT_ERR: 20,
URL_MISMATCH_ERR: 21,
QUOTA_EXCEEDED_ERR: 22,
TIMEOUT_ERR: 23,
INVALID_NODE_TYPE_ERR: 24,
DATA_CLONE_ERR: 25,
toString: [Function: toString],
}****

@edisonpaul4 commented on GitHub (Nov 7, 2025): same error here name: "TimeoutError", message: "The operation timed out.", INDEX_SIZE_ERR: 1, DOMSTRING_SIZE_ERR: 2, HIERARCHY_REQUEST_ERR: 3, WRONG_DOCUMENT_ERR: 4, INVALID_CHARACTER_ERR: 5, NO_DATA_ALLOWED_ERR: 6, NO_MODIFICATION_ALLOWED_ERR: 7, NOT_FOUND_ERR: 8, NOT_SUPPORTED_ERR: 9, INUSE_ATTRIBUTE_ERR: 10, INVALID_STATE_ERR: 11, SYNTAX_ERR: 12, INVALID_MODIFICATION_ERR: 13, NAMESPACE_ERR: 14, INVALID_ACCESS_ERR: 15, VALIDATION_ERR: 16, TYPE_MISMATCH_ERR: 17, SECURITY_ERR: 18, NETWORK_ERR: 19, ABORT_ERR: 20, URL_MISMATCH_ERR: 21, QUOTA_EXCEEDED_ERR: 22, TIMEOUT_ERR: 23, INVALID_NODE_TYPE_ERR: 24, DATA_CLONE_ERR: 25, toString: [Function: toString], }****
Author
Owner

@wojons commented on GitHub (Nov 7, 2025):

Would be great to see some more retry logic for these light errors so that a session doesnt stop for a light error like these sometiems its just providers network or shifting trafifc or what ever

@wojons commented on GitHub (Nov 7, 2025): Would be great to see some more retry logic for these light errors so that a session doesnt stop for a light error like these sometiems its just providers network or shifting trafifc or what ever
Author
Owner

@edisonpaul4 commented on GitHub (Nov 7, 2025):

Would be great to see some more retry logic for these light errors so that a session doesnt stop for a light error like these sometiems its just providers network or shifting trafifc or what ever

Yep, I am running this on pipelines in Azure Devops and when this fails, my pipeline fails.

@edisonpaul4 commented on GitHub (Nov 7, 2025): > Would be great to see some more retry logic for these light errors so that a session doesnt stop for a light error like these sometiems its just providers network or shifting trafifc or what ever Yep, I am running this on pipelines in Azure Devops and when this fails, my pipeline fails.
Author
Owner

@rekram1-node commented on GitHub (Nov 7, 2025):

Huh interesting Im just curious where this is coming from, need to locate it and then it should be easy fix

is this just during the responses? mid convo?

@rekram1-node commented on GitHub (Nov 7, 2025): Huh interesting Im just curious where this is coming from, need to locate it and then it should be easy fix is this just during the responses? mid convo?
Author
Owner

@edisonpaul4 commented on GitHub (Nov 7, 2025):

Huh interesting Im just curious where this is coming from, need to locate it and then it should be easy fix

is this just during the responses? mid convo?

mmm I am using opencode only in cli mode

usually like this

opencode run
"@custom-agent ${PROMPT_INSTRUCTIONS}"
--model "$AGENT_MODEL"
< /dev/null

and sometimes with any provider (I am using bedrock, azure ai foundry and anthropic) it just happens and opencode exits with error..

here another run

`Perfect! Now I have all the information I need. Let me create a comprehensive technical documentation structure. I'll create the documentation files at the root level as specified.
| Write README.md
Error: Unexpected error, check log file at /home/vsts/.local/share/opencode/log/2025-11-07T203314.log for more details

DOMException {
stack: "",
code: 23,
name: "TimeoutError",
message: "The operation timed out.",
INDEX_SIZE_ERR: 1,
DOMSTRING_SIZE_ERR: 2,
HIERARCHY_REQUEST_ERR: 3,
WRONG_DOCUMENT_ERR: 4,
INVALID_CHARACTER_ERR: 5,
NO_DATA_ALLOWED_ERR: 6,
NO_MODIFICATION_ALLOWED_ERR: 7,
NOT_FOUND_ERR: 8,
NOT_SUPPORTED_ERR: 9,
INUSE_ATTRIBUTE_ERR: 10,
INVALID_STATE_ERR: 11,
SYNTAX_ERR: 12,
INVALID_MODIFICATION_ERR: 13,
NAMESPACE_ERR: 14,
INVALID_ACCESS_ERR: 15,
VALIDATION_ERR: 16,
TYPE_MISMATCH_ERR: 17,
SECURITY_ERR: 18,
NETWORK_ERR: 19,
ABORT_ERR: 20,
URL_MISMATCH_ERR: 21,
QUOTA_EXCEEDED_ERR: 22,
TIMEOUT_ERR: 23,
INVALID_NODE_TYPE_ERR: 24,
DATA_CLONE_ERR: 25,
toString: [Function: toString],
}
`

@edisonpaul4 commented on GitHub (Nov 7, 2025): > Huh interesting Im just curious where this is coming from, need to locate it and then it should be easy fix > > is this just during the responses? mid convo? mmm I am using opencode only in cli mode usually like this opencode run \ "@custom-agent ${PROMPT_INSTRUCTIONS}" \ --model "$AGENT_MODEL" \ < /dev/null and sometimes with any provider (I am using bedrock, azure ai foundry and anthropic) it just happens and opencode exits with error.. here another run `Perfect! Now I have all the information I need. Let me create a comprehensive technical documentation structure. I'll create the documentation files at the root level as specified. | Write README.md Error: Unexpected error, check log file at /home/vsts/.local/share/opencode/log/2025-11-07T203314.log for more details DOMException { stack: "", code: 23, name: "TimeoutError", message: "The operation timed out.", INDEX_SIZE_ERR: 1, DOMSTRING_SIZE_ERR: 2, HIERARCHY_REQUEST_ERR: 3, WRONG_DOCUMENT_ERR: 4, INVALID_CHARACTER_ERR: 5, NO_DATA_ALLOWED_ERR: 6, NO_MODIFICATION_ALLOWED_ERR: 7, NOT_FOUND_ERR: 8, NOT_SUPPORTED_ERR: 9, INUSE_ATTRIBUTE_ERR: 10, INVALID_STATE_ERR: 11, SYNTAX_ERR: 12, INVALID_MODIFICATION_ERR: 13, NAMESPACE_ERR: 14, INVALID_ACCESS_ERR: 15, VALIDATION_ERR: 16, TYPE_MISMATCH_ERR: 17, SECURITY_ERR: 18, NETWORK_ERR: 19, ABORT_ERR: 20, URL_MISMATCH_ERR: 21, QUOTA_EXCEEDED_ERR: 22, TIMEOUT_ERR: 23, INVALID_NODE_TYPE_ERR: 24, DATA_CLONE_ERR: 25, toString: [Function: toString], } `
Author
Owner

@rekram1-node commented on GitHub (Nov 7, 2025):

AH okay makes sense

@rekram1-node commented on GitHub (Nov 7, 2025): AH okay makes sense
Author
Owner

@wojons commented on GitHub (Nov 8, 2025):

I captured one error that breaks in a same way not sure if it is the same eror or a differnt since i have been playing around with different versions recently This one comes with the synthetic provider:

 "statusCode": 400,
        "responseHeaders": {
            "access-control-allow-methods": "GET,POST,PUT,DELETE,OPTIONS",
            "access-control-allow-origin": "*",
            "connection": "keep-alive",
            "content-type": "application/json",
            "date": "Sat, 08 Nov 2025 22:14:06 GMT",
            "strict-transport-security": "max-age=31536000; includeSubDomains",
            "transfer-encoding": "chunked",
            "vary": "rsc, next-router-state-tree, next-router-prefetch, next-router-segment-prefetch",
            "x-clerk-auth-message": "Invalid JWT form. A JWT consists of three parts separated by dots. (reason=token-invalid, token-carrier=header)",
            "x-clerk-auth-reason": "token-invalid",
            "x-clerk-auth-status": "signed-out",
            "x-frame-options": "SAMEORIGIN",
            "x-middleware-rewrite": "/api/openai/v1/chat/completions",
            "set-cookie": "REMOVED BECAUSE DONT KNOW IF IT IS SECRET"
        },
        "responseBody": "{\"error\":\"Error from inference backend: Requested token count exceeds the model's maximum context length of 196608 tokens. You requested a total of 196761 tokens: 164761 tokens from the input messages and 32000 tokens for the completion. Please reduce the number of tokens in the input messages or the completion to fit within the limit.\"}",
        "isRetryable": false
    }

For this error my guess is we need to do a compact and then continue. The goal should be not to break the users running session.

@wojons commented on GitHub (Nov 8, 2025): I captured one error that breaks in a same way not sure if it is the same eror or a differnt since i have been playing around with different versions recently This one comes with the synthetic provider: ``` "statusCode": 400, "responseHeaders": { "access-control-allow-methods": "GET,POST,PUT,DELETE,OPTIONS", "access-control-allow-origin": "*", "connection": "keep-alive", "content-type": "application/json", "date": "Sat, 08 Nov 2025 22:14:06 GMT", "strict-transport-security": "max-age=31536000; includeSubDomains", "transfer-encoding": "chunked", "vary": "rsc, next-router-state-tree, next-router-prefetch, next-router-segment-prefetch", "x-clerk-auth-message": "Invalid JWT form. A JWT consists of three parts separated by dots. (reason=token-invalid, token-carrier=header)", "x-clerk-auth-reason": "token-invalid", "x-clerk-auth-status": "signed-out", "x-frame-options": "SAMEORIGIN", "x-middleware-rewrite": "/api/openai/v1/chat/completions", "set-cookie": "REMOVED BECAUSE DONT KNOW IF IT IS SECRET" }, "responseBody": "{\"error\":\"Error from inference backend: Requested token count exceeds the model's maximum context length of 196608 tokens. You requested a total of 196761 tokens: 164761 tokens from the input messages and 32000 tokens for the completion. Please reduce the number of tokens in the input messages or the completion to fit within the limit.\"}", "isRetryable": false } ``` For this error my guess is we need to do a compact and then continue. The goal should be not to break the users running session.
Author
Owner

@rekram1-node commented on GitHub (Nov 8, 2025):

yeah that makes sense

@rekram1-node commented on GitHub (Nov 8, 2025): yeah that makes sense
Author
Owner

@rekram1-node commented on GitHub (Nov 13, 2025):

should be fixed in next release: https://github.com/sst/opencode/commit/779a27693a9d37ae212c27af353414ff4de07ea4

@rekram1-node commented on GitHub (Nov 13, 2025): should be fixed in next release: https://github.com/sst/opencode/commit/779a27693a9d37ae212c27af353414ff4de07ea4
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2654