Skip to content

Getting 500 error with Latest version #51350

Closed as not planned
Closed as not planned

Description

@zainkhan122

timestamp=2026-09-25T14:12:09.391Z level=INFO run=8bb8e925 cause="Error: Schema validation failed\n at (B:/~BUN/root/chunk-d5peazwv.js:4:36213)\n at (B:/~BUN/root/chunk-xm1wvpce.js:120:299)\n at SessionPrompt.normalizeImageAttachment (B:/~BUN/root/chunk-xm1wvpce.js:120:23)\n at SessionPrompt.normalizeImageAttachment (definition) (B:/~BUN/root/chunk-xm1wvpce.js:120:193)\n at SessionPrompt.materializeAttachment (B:/~BUN/root/chunk-g2m6xm1v.js:24:19733)\n at SessionPrompt.materializeAttachment (definition) (B:/~BUN/root/chunk-xm1wvpce.js:118:1878)\n at SessionPrompt.prepare (B:/~BUN/root/chunk-xm1wvpce.js:134:4909)\n at SessionPrompt.prepare (definition) (B:/~BUN/root/chunk-xm1wvpce.js:118:834)\n at Session.prompt (B:/~BUN/root/chunk-t9es9kf6.js:442:7551)\n at Session.prompt (definition) (B:/~BUN/root/chunk-xm1wvpce.js:134:4673)\n at Effect.fn (B:/~BUN/root/chunk-t9es9kf6.js:56:6961)\n at Effect.fn (definition) (B:/~BUN/root/chunk-t9es9kf6.js:442:7511) {\n [cause]: Error: {"~effect/SchemaIssue/Issue":"~effect/SchemaIssue/Issue","_tag":"Composite","ast":{"~effect/Schema":"~effect/Schema","checks":[{"_tag":"Filter","annotations":{"expected":"a string matching the RegExp ^(?:[A-Za-z0-9+/]{4})(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","representation":{"id":"effect/schema/isPattern","payload":{"source":"^(?:[A-Za-z0-9+/]{4})(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","flags":""}},"arbitrary":{"constraint":{"patterns":["^(?:[A-Za-z0-9+/]{4})(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"]}},"identifier":"Prompt.Base64"},"aborted":false}],"_tag":"String"},"issues":[{"~effect/SchemaIssue/Issue":"~effect/SchemaIssue/Issue","_tag":"Filter","filter":{"_tag":"Filter","annotations":{"expected":"a string matching the RegExp ^(?:[A-Za-z0-9+/]{4})(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","representation":{"id":"effect/schema/isPattern","payload":{"source":"^(?:[A-Za-z0-9+/]{4})(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","flags":""}},"arbitrary":{"constraint":{"patterns":["^(?:[A-Za-z0-9+/]{4})(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"]}},"identifier":"Prompt.Base64"},"aborted":false},"issue":{"~effect/SchemaIssue/Issue":"~effect/SchemaIssue/Issue","_tag":"InvalidValue"}}]}\n}" http.span=1333 role=server http.method=POST http.url=/api/session/ses_f271d1c60ffeEW5ejeDW5XyFQc/prompt http.status=500
timestamp=2026-09-25T14:12:10.832Z level=INFO run=8bb8e925 cause="Error: Schema validation failed\n at (B:/~BUN/root/chunk-d5peazwv.js:4:36213)\n at (B:/~BUN/root/chunk-xm1wvpce.js:120:299)\n at SessionPrompt.normalizeImageAttachment (B:/~BUN/root/chunk-xm1wvpce.js:120:23)\n at SessionPrompt.normalizeImageAttachment (definition) (B:/~BUN/root/chunk-xm1wvpce.js:120:193)\n at SessionPrompt.materializeAttachment (B:/~BUN/root/chunk-g2m6xm1v.js:24:19733)\n at SessionPrompt.materializeAttachment (definition) (B:/~BUN/root/chunk-xm1wvpce.js:118:1878)\n at SessionPrompt.prepare (B:/~BUN/root/chunk-xm1wvpce.js:134:4909)\n at SessionPrompt.prepare (definition) (B:/~BUN/root/chunk-xm1wvpce.js:118:834)\n at Session.prompt (B:/~BUN/root/chunk-t9es9kf6.js:442:7551)\n at Session.prompt (definition) (B:/~BUN/root/chunk-xm1wvpce.js:134:4673)\n at Effect.fn (B:/~BUN/root/chunk-t9es9kf6.js:56:6961)\n at Effect.fn (definition) (B:/~BUN/root/chunk-t9es9kf6.js:442:7511) {\n [cause]: Error: {"~effect/SchemaIssue/Issue":"~effect/SchemaIssue/Issue","_tag":"Composite","ast":{"~effect/Schema":"~effect/Schema","checks":[{"_tag":"Filter","annotations":{"expected":"a string matching the RegExp ^(?:[A-Za-z0-9+/]{4})(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","representation":{"id":"effect/schema/isPattern","payload":{"source":"^(?:[A-Za-z0-9+/]{4})(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","flags":""}},"arbitrary":{"constraint":{"patterns":["^(?:[A-Za-z0-9+/]{4})(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"]}},"identifier":"Prompt.Base64"},"aborted":false}],"_tag":"String"},"issues":[{"~effect/SchemaIssue/Issue":"~effect/SchemaIssue/Issue","_tag":"Filter","filter":{"_tag":"Filter","annotations":{"expected":"a string matching the RegExp ^(?:[A-Za-z0-9+/]{4})(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","representation":{"id":"effect/schema/isPattern","payload":{"source":"^(?:[A-Za-z0-9+/]{4})(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","flags":""}},"arbitrary":{"constraint":{"patterns":["^(?:[A-Za-z0-9+/]{4})(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"]}},"identifier":"Prompt.Base64"},"aborted":false},"issue":{"~effect/SchemaIssue/Issue":"~effect/SchemaIssue/Issue","_tag":"InvalidValue"}}]}\n}" http.span=1396 role=server http.method=POST http.url=/api/session/ses_f271d1c60ffeEW5ejeDW5XyFQc/prompt http.status=500

Activity

  1. github-actions commented on Sep 25, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • Please use the Bug Report template and add a clear Description in your own words. The issue currently contains only logs and does not explain what action triggers the error or provide steps to reproduce it.
    • Add relevant system and setup details, including the OpenCode version/channel, operating system, and the input or attachment action/file involved.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    • #45558: Dragging a file or pasting a file path fails session setup with the same Prompt.Base64 validation error and /prompt 500.
    • #50336: Mentioning a large XLSX file crashes the session with the same image-attachment normalization and Prompt.Base64 validation error.

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. github-actions commented on Sep 25, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

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