Skip to content

[Bug]: UnicodeEncodeError #6843

Description

@Dipperzhu

Bug Description

Welcome to Hermes Agent! Type your message or /help for commands.

────────────────────────────────────────
● what you can do for me?

Initializing agent...
────────────────────────────────────────

⚠️ API call failed (attempt 1/3): UnicodeEncodeError
🔌 Provider: zai Model: glm-5.1
🌐 Endpoint: https://api.z.ai/api/paas/v4
📝 Error: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
⏳ Retrying in 2.1544168638775263s (attempt 1/3)...
⚠️ API call failed (attempt 2/3): UnicodeEncodeError
🔌 Provider: zai Model: glm-5.1
🌐 Endpoint: https://api.z.ai/api/paas/v4
📝 Error: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
⏳ Retrying in 5.917575904951397s (attempt 2/3)...
⚠️ API call failed (attempt 3/3): UnicodeEncodeError
🔌 Provider: zai Model: glm-5.1
🌐 Endpoint: https://api.z.ai/api/paas/v4
📝 Error: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
⚠️ Max retries (3) exhausted — trying fallback...
❌ API failed after 3 retries — 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
💀 Final error: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
─ ⚕ Hermes ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

API call failed after 3 retries: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
⚕ glm-5.1 │ 0/200K │ [░░░░░░░░░░] 0% │ 4m
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Resume this session with:
hermes --resume 20260409_182144_6ffc9e

Session: 20260409_182144_6ffc9e
Duration: 4m 27s
Messages: 1 (1 user, 0 tool calls)
(base) dipperzhu@penguin:$ export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export PYTHONIOENCODING=utf-8
(base) dipperzhu@penguin:
$ hermes

██╗ ██╗███████╗██████╗ ███╗ ███╗███████╗███████╗ █████╗ ██████╗ ███████╗███╗ ██╗████████╗
██║ ██║██╔════╝██╔══██╗████╗ ████║██╔════╝██╔════╝ ██╔══██╗██╔════╝ ██╔════╝████╗ ██║╚══██╔══╝
███████║█████╗ ██████╔╝██╔████╔██║█████╗ ███████╗█████╗███████║██║ ███╗█████╗ ██╔██╗ ██║ ██║
██╔══██║██╔══╝ ██╔══██╗██║╚██╔╝██║██╔══╝ ╚════██║╚════╝██╔══██║██║ ██║██╔══╝ ██║╚██╗██║ ██║
██║ ██║███████╗██║ ██║██║ ╚═╝ ██║███████╗███████║ ██║ ██║╚██████╔╝███████╗██║ ╚████║ ██║
╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═╝

╭─────────────────────────────────────────────────────────────────── Hermes Agent v0.8.0 (2026.4.8) · upstream 1789c26 ────────────────────────────────────────────────────────────────────╮
│ Available Tools │
│ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⡀⠀⣀⣀⠀⢀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ browser: browser_back, browser_click, ... │
│ ⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⣿⣿⣇⠸⣿⣿⠇⣸⣿⣿⣷⣦⣄⡀⠀⠀⠀⠀⠀⠀ clarify: clarify │
│ ⠀⢀⣠⣴⣶⠿⠋⣩⡿⣿⡿⠻⣿⡇⢠⡄⢸⣿⠟⢿⣿⢿⣍⠙⠿⣶⣦⣄⡀⠀ code_execution: execute_code │
│ ⠀⠀⠉⠉⠁⠶⠟⠋⠀⠉⠀⢀⣈⣁⡈⢁⣈⣁⡀⠀⠉⠀⠙⠻⠶⠈⠉⠉⠀⠀ cronjob: cronjob │
│ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⡿⠛⢁⡈⠛⢿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ delegation: delegate_task │
│ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠿⣿⣦⣤⣈⠁⢠⣴⣿⠿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ file: patch, read_file, search_files, write_file │
│ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠻⢿⣿⣦⡉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ homeassistant: ha_call_service, ha_get_state, ... │
│ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢷⣦⣈⠛⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ image_gen: image_generate │
│ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣴⠦⠈⠙⠿⣦⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ (and 11 more toolsets...) │
│ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣤⡈⠁⢤⣿⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ │
│ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠷⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Available Skills │
│ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠑⢶⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ autonomous-ai-agents: claude-code, codex, hermes-agent, opencode │
│ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⠁⢰⡆⠈⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ creative: ascii-art, ascii-video, excalidraw, manim-video... │
│ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠳⠈⣡⠞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ data-science: jupyter-live-kernel │
│ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ devops: webhook-subscriptions │
│ email: himalaya │
│ glm-5.1 · Nous Research gaming: minecraft-modpack-server, pokemon-player │
│ /home/dipperzhu general: dogfood │
│ Session: 20260409_182906_dafc01 github: codebase-inspection, github-auth, github-code-r... │
│ leisure: find-nearby │
│ mcp: mcporter, native-mcp │
│ media: gif-search, heartmula, songsee, youtube-content │
│ mlops: audiocraft-audio-generation, axolotl, clip, dsp... │
│ note-taking: obsidian │
│ productivity: google-workspace, linear, nano-pdf, notion, ocr... │
│ red-teaming: godmode │
│ research: arxiv, blogwatcher, llm-wiki, polymarket, resea... │
│ smart-home: openhue │
│ social-media: xitter │
│ software-development: plan, requesting-code-review, subagent-driven-d... │
│ │
│ 28 tools · 73 skills · /help for commands │
│ ⚠ 39 commits behind — run hermes update to update │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Welcome to Hermes Agent! Type your message or /help for commands.

────────────────────────────────────────
● what happened?

Initializing agent...
────────────────────────────────────────

⚠️ API call failed (attempt 1/3): UnicodeEncodeError
🔌 Provider: zai Model: glm-5.1
🌐 Endpoint: https://api.z.ai/api/paas/v4
📝 Error: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
⏳ Retrying in 2.3273248691197193s (attempt 1/3)...
⚠️ API call failed (attempt 2/3): UnicodeEncodeError
🔌 Provider: zai Model: glm-5.1
🌐 Endpoint: https://api.z.ai/api/paas/v4
📝 Error: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
⏳ Retrying in 5.25883129440488s (attempt 2/3)...
⚠️ API call failed (attempt 3/3): UnicodeEncodeError
🔌 Provider: zai Model: glm-5.1
🌐 Endpoint: https://api.z.ai/api/paas/v4
📝 Error: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
⚠️ Max retries (3) exhausted — trying fallback...
❌ API failed after 3 retries — 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
💀 Final error: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
─ ⚕ Hermes ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

API call failed after 3 retries: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
⚕ glm-5.1 │ 0/200K │ [░░░░░░░░░░] 0% │ 3m
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Steps to Reproduce

Just start to use Hermes.

Expected Behavior

Just start to use Hermes.

Actual Behavior

Just start to use Hermes.

Affected Component

CLI (interactive chat)

Messaging Platform (if gateway-related)

N/A (CLI only)

Operating System

chromebook 8G128G

Python Version

Python 版本: 3.12.9 | packaged by Anaconda, Inc. | (main, Feb 6 2025, 18:56:27) [GCC 11.2.0] 可执行文件: /home/dipperzhu/miniconda3/bin/python

Hermes Version

Hermes Agent v0.8.0 (2026.4.8) · upstream 1789c26

Relevant Logs / Traceback

Just start to use Hermes.

Root Cause Analysis (optional)

Just start to use Hermes.

Proposed Fix (optional)

Just start to use Hermes.

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions