hermes - 💡(How to fix) Fix [Bug]: JSON Parsing Error in Tool Call Arguments [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#13480Fetched 2026-04-22 08:06:12
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
labeled ×1

Error Message

inside markdown files, since I srv log_server_r: done request: POST /v1/chat/completions 127.0.0.1 500 srv operator(): got exception: {"error":{"code":500,"message":"Failed to parse tool call arguments as JSON: [json.exception.parse_error.101] parse error at line 1, column 217: syntax error while parsing value - invalid string: missing closing quote; last read: '"# Hermes Agent Guide: Building and Maintaining a 4-Profile Team\n\n## The Mental Model — Roles, N...[truncated]'","type":"server_error"}} get the error

Root Cause

Root Cause Analysis (optional)

Code Example

inside markdown files, since I srv log_server_r: done request: POST /v1/chat/completions 127.0.0.1 500
srv operator(): got exception: {"error":{"code":500,"message":"Failed to parse tool call arguments as JSON: [json.exception.parse_error.101] parse error at line 1, column 217: syntax error while parsing value - invalid string: missing closing quote; last read: '\"# Hermes Agent Guide: Building and Maintaining a 4-Profile Team\\n\\n## The Mental Model — Roles, N...[truncated]'","type":"server_error"}}
get the error

---

inside markdown files, since I srv log_server_r: done request: POST /v1/chat/completions 127.0.0.1 500
srv operator(): got exception: {"error":{"code":500,"message":"Failed to parse tool call arguments as JSON: [json.exception.parse_error.101] parse error at line 1, column 217: syntax error while parsing value - invalid string: missing closing quote; last read: '\"# Hermes Agent Guide: Building and Maintaining a 4-Profile Team\\n\\n## The Mental Model — Roles, N...[truncated]'","type":"server_error"}}
get the error

---

Hermes Agent v0.10.0 (2026.4.16)
Project: .hermes/hermes-agent
Python: 3.11.15
OpenAI SDK: 2.30.0
RAW_BUFFERClick to expand / collapse

Bug Description

I'm encountering a JSON parsing error when using the Hermes Agent. The error message indicates that there's a syntax error while parsing a JSON string - specifically, an invalid string is missing a closing quote.

The error appeared when the obsidian skill was used to auto organize my vault.

Steps to Reproduce

  1. Use the Hermes Agent with a tool call that contains a JSON string.
  2. The agent will fail to parse the JSON string due to a missing closing quote.

Expected Behavior

Auto orginize my vault

Actual Behavior

inside markdown files, since I srv log_server_r: done request: POST /v1/chat/completions 127.0.0.1 500
srv operator(): got exception: {"error":{"code":500,"message":"Failed to parse tool call arguments as JSON: [json.exception.parse_error.101] parse error at line 1, column 217: syntax error while parsing value - invalid string: missing closing quote; last read: '\"# Hermes Agent Guide: Building and Maintaining a 4-Profile Team\\n\\n## The Mental Model — Roles, N...[truncated]'","type":"server_error"}}
get the error

Affected Component

Tools (terminal, file ops, web, code execution, etc.)

Messaging Platform (if gateway-related)

No response

Debug Report

inside markdown files, since I srv log_server_r: done request: POST /v1/chat/completions 127.0.0.1 500
srv operator(): got exception: {"error":{"code":500,"message":"Failed to parse tool call arguments as JSON: [json.exception.parse_error.101] parse error at line 1, column 217: syntax error while parsing value - invalid string: missing closing quote; last read: '\"# Hermes Agent Guide: Building and Maintaining a 4-Profile Team\\n\\n## The Mental Model — Roles, N...[truncated]'","type":"server_error"}}
get the error

Operating System

Mint 22

Python Version

No response

Hermes Version

v0.10.0 (2026.4.16)

Additional Logs / Traceback (optional)

Hermes Agent v0.10.0 (2026.4.16)
Project: .hermes/hermes-agent
Python: 3.11.15
OpenAI SDK: 2.30.0

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

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

extent analysis

TL;DR

The most likely fix is to ensure that all JSON strings passed to the Hermes Agent are properly formatted with closing quotes.

Guidance

  • Verify that the JSON string being passed to the Hermes Agent is correctly formatted, paying close attention to quotes and escaping.
  • Check the tool call that contains the JSON string for any syntax errors or missing closing quotes.
  • Consider adding input validation or sanitization to handle malformed JSON strings and prevent parsing errors.
  • Review the Obsidian skill configuration to ensure it is generating valid JSON strings for the Hermes Agent.

Example

No code snippet is provided as the issue does not include specific code that needs modification.

Notes

The root cause of the issue appears to be a syntax error in the JSON string being parsed, but without more information about the specific tool call or JSON string, it's difficult to provide a more detailed solution.

Recommendation

Apply workaround: Ensure that all JSON strings are properly formatted and validated before passing them to the Hermes Agent, as this will prevent parsing errors and allow the Obsidian skill to function correctly.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING