opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[BUG]: TypeError: Failed to execute 'set' on 'Headers': String contains non ISO-8859-1 code point.

Open ymind opened this issue 1 month ago • 1 comments

Description

TypeError: Failed to execute 'set' on 'Headers': String contains non ISO-8859-1 code point.
TypeError: String contains non ISO-8859-1 code point.
    at mergeHeaders (http://tauri.localhost/assets/index-CLwZpl0s.js:1705:5436)
    at mergeConfigs (http://tauri.localhost/assets/index-CLwZpl0s.js:1705:5073)
    at createClient (http://tauri.localhost/assets/index-CLwZpl0s.js:1705:6276)
    at createOpencodeClient (http://tauri.localhost/assets/index-CLwZpl0s.js:1705:29664)
    at Object.init (http://tauri.localhost/assets/index-CLwZpl0s.js:1728:26431)
    at provider (http://tauri.localhost/assets/index-CLwZpl0s.js:2:26566)
    at http://tauri.localhost/assets/index-CLwZpl0s.js:2:10820
    at untrack (http://tauri.localhost/assets/index-CLwZpl0s.js:2:4402)
    at createComponent (http://tauri.localhost/assets/index-CLwZpl0s.js:2:10813)
    at get children (http://tauri.localhost/assets/index-CLwZpl0s.js:1728:272498)

OpenCode version

1.0.223

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

No response

ymind avatar Jan 02 '26 00:01 ymind

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

  • #5926: Windows version of the .exe terminal will report an error when opening a project folder with Chinese characters.

Both issues share the same error signature: 'TypeError: Failed to execute 'set' on 'Headers': String contains non ISO-8859-1 code point.' This suggests the root cause may be related to non-ISO-8859-1 characters (such as Chinese characters) in file paths or project configurations.

Feel free to ignore if your specific case differs.

github-actions[bot] avatar Jan 02 '26 00:01 github-actions[bot]