[Bug] Anthropic API Error: Invalid JSON Parsing in Prompt Submission

Resolved 💬 5 comments Opened Sep 4, 2025 by jshen-avtx Closed Jan 7, 2026

Bug Description
Always got error when I aadd prompts:

 API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"The request body is not valid JSON: no low surrogate in string: line 1 column 748381 (char
     748380)"},"request_id":"req_011CSocRMjrY67QEjp8JeyUR"}

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 1.0.103
  • Feedback ID: c0548b6f-1370-4ce6-969f-3e7ff8c14961

Errors

[{"error":"Error: Agent file /Users/userX/.claude/agents/marketing/instagram-curator.md is missing required 'name' in frontmatter\n    at PR9 (/$bunfs/root/claude:2304:9244)\n    at <anonymous> (/$bunfs/root/claude:2304:7752)\n    at map (native:1:11)\n    at <anonymous> (/$bunfs/root/claude:2304:7682)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-04T08:44:33.609Z"},{"error":"Error: Agent file /Users/userX/.claude/agents/marketing/twitter-engager.md is missing required 'name' in frontmatter\n    at PR9 (/$bunfs/root/claude:2304:9244)\n    at <anonymous> (/$bunfs/root/claude:2304:7752)\n    at map (native:1:11)\n    at <anonymous> (/$bunfs/root/claude:2304:7682)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-04T08:44:33.612Z"},{"error":"Error: Agent file /Users/userX/.claude/agents/marketing/growth-hacker.md is missing required 'name' in frontmatter\n    at PR9 (/$bunfs/root/claude:2304:9244)\n    at <anonymous> (/$bunfs/root/claude:2304:7752)\n    at map (native:1:11)\n    at <anonymous> (/$bunfs/root/claude:2304:7682)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-04T08:44:33.612Z"},{"error":"Error: Agent file /Users/userX/.claude/agents/marketing/content-creator.md is missing required 'name' in frontmatter\n    at PR9 (/$bunfs/root/claude:2304:9244)\n    at <anonymous> (/$bunfs/root/claude:2304:7752)\n    at map (native:1:11)\n    at <anonymous> (/$bunfs/root/claude:2304:7682)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-04T08:44:33.612Z"},{"error":"Error: Agent file /Users/userX/.claude/agents/marketing/reddit-community-builder.md is missing required 'name' in frontmatter\n    at PR9 (/$bunfs/root/claude:2304:9244)\n    at <anonymous> (/$bunfs/root/claude:2304:7752)\n    at map (native:1:11)\n    at <anonymous> (/$bunfs/root/claude:2304:7682)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-04T08:44:33.612Z"},{"error":"Error: Agent file /Users/userX/.claude/agents/README.md is missing required 'name' in frontmatter\n    at PR9 (/$bunfs/root/claude:2304:9244)\n    at <anonymous> (/$bunfs/root/claude:2304:7752)\n    at map (native:1:11)\n    at <anonymous> (/$bunfs/root/claude:2304:7682)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-04T08:44:33.613Z"},{"error":"Error: Agent file /Users/userX/.claude/agents/03-infrastructure/README.md is missing required 'name' in frontmatter\n    at PR9 (/$bunfs/root/claude:2304:9244)\n    at <anonymous> (/$bunfs/root/claude:2304:7752)\n    at map (native:1:11)\n    at <anonymous> (/$bunfs/root/claude:2304:7682)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-04T08:44:33.613Z"},{"error":"Error: EPERM: operation not permitted, scandir '/var/folders/vf/94gh095x65s66ywrxylcd1l40000gp/T/TemporaryItems/NSIRD_screencaptureui_HgYs1z'\n    at readdirSync (unknown)\n    at RK0 (/$bunfs/root/claude:599:767)\n    at validateInput (/$bunfs/root/claude:1634:4873)\n    at validateInput (/$bunfs/root/claude:1634:5580)\n    at Jz1 (/$bunfs/root/claude:2305:7172)\n    at Jz1 (/$bunfs/root/claude:2305:7411)\n    at <anonymous> (/$bunfs/root/claude:2305:3198)\n    at <anonymous> (/$bunfs/root/claude:2305:3403)\n    at map (native:1:11)\n    at gR9 (/$bunfs/root/claude:2305:2845)","timestamp":"2025-09-04T08:45:55.177Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"I\"\n    at <parse> (:0)\n    at parse (unknown)\n    at <anonymous> (/$bunfs/root/claude:540:9928)\n    at W (/$bunfs/root/claude:491:13280)\n    at TMG (/$bunfs/root/claude:980:1925)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-04T08:45:58.493Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readSync (unknown)\n    at readSync (/$bunfs/root/claude:526:196826)\n    at hK (/$bunfs/root/claude:598:278)\n    at AH (/$bunfs/root/claude:600:458)\n    at Oc9 (/$bunfs/root/claude:3590:17607)\n    at Oc9 (/$bunfs/root/claude:3590:18563)\n    at z (/$bunfs/root/claude:3590:16822)\n    at z (/$bunfs/root/claude:3590:17101)\n    at <anonymous> (/$bunfs/root/claude:3590:17134)\n    at n6 (/$bunfs/root/claude:231:21530)","timestamp":"2025-09

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗