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

Open
opened 2026-02-16 17:42:30 -05:00 by yindo · 1 comment
Owner

Originally created by @ococl on GitHub (Jan 1, 2026).

Originally assigned to: @adamdotdevin on GitHub.

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

Originally created by @ococl on GitHub (Jan 1, 2026). Originally assigned to: @adamdotdevin on GitHub. ### 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 <img width="2409" height="1622" alt="Image" src="https://github.com/user-attachments/assets/77a8930d-f907-419e-8dca-0cbd2f3c2c59" /> ### Operating System Windows 11 ### Terminal _No response_
yindo added the windowsbugweb labels 2026-02-16 17:42:30 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 1, 2026):

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] commented on GitHub (Jan 1, 2026): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4069