[Bug] Anthropic API Error: Overloaded

Open 💬 27 comments Opened Mar 27, 2026 by acosmi-fushihua

Bug Description
529 {"type":"error","error":{"type":"overloaded_error","me
ssage":"Overloaded. https://docs.claude.com/en/api/errors"
},"request_id":"req_011CZTE7i3e4tJVTPSyKsDMR"}

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.85
  • Feedback ID: 2742d30f-1e19-4d04-b585-ebac75102f3e

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/fushihua/.local/share/claude/versions/2.1.85 (expected in multi-process scenarios)\n    at vp_ (/$bunfs/root/src/entrypoints/cli.js:2794:2168)\n    at yn6 (/$bunfs/root/src/entrypoints/cli.js:2794:1326)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T03:43:36.447Z"},{"error":"Error: 1P event logging: 213 events failed to export (code=ECONNRESET, The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch())\n    at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:397:2647)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T05:05:23.421Z"},{"error":"Error: {\"message\":\"Failed to export 213 events (code=ECONNRESET, The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch())\",\"originalLine\":\"397\",\"originalColumn\":\"1668\",\"line\":\"397\",\"column\":\"1668\",\"sourceURL\":\"/$bunfs/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 213 events (code=ECONNRESET, The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch())\\n    at doExport (/$bunfs/root/src/entrypoints/cli.js:397:1668)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/src/entrypoints/cli.js:2740:27130)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:156:82048)\n    at ZG$ (/$bunfs/root/src/entrypoints/cli.js:156:82592)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:157:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T05:05:23.422Z"},{"error":"Error: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at from (/$bunfs/root/src/entrypoints/cli.js:120:14297)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:128:12955)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:127:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:130:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T05:05:35.604Z"},{"error":"Error: 1P event logging: 6 events failed to export (code=ECONNRESET, The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch())\n    at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:397:2647)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T05:05:36.620Z"},{"error":"Error: {\"message\":\"Failed to export 6 events (code=ECONNRESET, The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch())\",\"originalLine\":\"397\",\"originalColumn\":\"1668\",\"line\":\"397\",\"column\":\"1668\",\"sourceURL\":\"/$bunfs/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 6 events (code=ECONNRESET, The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch())\\n    at doExport (/$bunfs/root/src/entrypoints/cli.js:397:1668)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/src/entrypoints/cli.js:2740:27130)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:156:82048)\n    at ZG$ (/$bunfs/root/src/entrypoints/cli.js:156:82592)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:157:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T05:05:36.620Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/fushihua/Desktop/Acosmi/nexus-v4/skill-store/docs/skill'\n    at JTH (/$bunfs/root/src/entrypoints/cli.js:938:8336)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T05:05:41.057Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/fushihua/Desktop/Acosmi/nexus-v4/skill-store/docs/skill/skill-creator'\n    at JTH (/$bunfs/root/src/entrypoints/cli.js:938:8336)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T05:06:40.001Z"},{"error":"Error: EISDIR: illegal op…

Note: Content was truncated.

View original on GitHub ↗

27 Comments

skylarkoo7 · 3 months ago

+1

marv1n91 · 3 months ago

+1

001005HS · 3 months ago

+1

bienlee · 3 months ago

+1

yosyus-Yo · 3 months ago

+1

Ishaq1189 · 3 months ago

+1

FantasyNitroGEN · 3 months ago

+1

osnathy · 3 months ago

+1

github-actions[bot] · 3 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/17876
  2. https://github.com/anthropics/claude-code/issues/35497
  3. https://github.com/anthropics/claude-code/issues/35502

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

testy-cool · 3 months ago

Hi again chat

lampd-2157 · 3 months ago

+1

eepson123tw · 3 months ago

+1

jun2077681 · 3 months ago

+1

chuxin0816 · 3 months ago

+1

KC-218 · 3 months ago

+1 Omg!!!

trungkien2003ntk · 3 months ago

+1

maleeqB · 3 months ago

+1

mwebber92 · 3 months ago

+1 would have been great if we could get overview from devs why this happened...

richovercash · 3 months ago

+1

khyeji98 · 3 months ago

+1

morgonfrilla · 3 months ago

+1

mmaroqui · 3 months ago

+1

Apollo1113 · 3 months ago

+1

jraczynski · 3 months ago

It's only happening with Opus, Sonnet works

pata00 · 3 months ago

+1

acseven · 3 months ago
yurukusa · 3 months ago

While the 529 errors are server-side, a PostToolUse hook can detect consecutive overload responses and warn before you waste more tokens on retries:

INPUT=$(cat)
OUTPUT=$(echo "$INPUT" | jq -r '.tool_output // empty' 2>/dev/null)
[ -z "$OUTPUT" ] && exit 0
STATE="/tmp/cc-overload-count-$$"
if echo "$OUTPUT" | grep -qiE '529|overloaded_error|rate.limit.*exceeded'; then
    COUNT=1
    [ -f "$STATE" ] && COUNT=$(( $(cat "$STATE") + 1 ))
    echo "$COUNT" > "$STATE"
    if [ "$COUNT" -ge 5 ]; then
        echo "⚠ $COUNT consecutive 529 errors. Stop and retry in 10-15 min." >&2
    elif [ "$COUNT" -ge 3 ]; then
        echo "⚠ $COUNT consecutive 529 errors. Wait 30-60s." >&2
    fi
else
    rm -f "$STATE" 2>/dev/null
fi
exit 0

This won't fix the overload itself, but it prevents Claude from blindly retrying (which wastes tokens and makes the overload worse). After 3 consecutive 529s it warns; after 5 it recommends stopping.