[Bug] Intermittent API Connection Failures: Cloudflare Bot Protection Challenge

Resolved 💬 3 comments Opened Nov 23, 2025 by caselas Closed Jan 22, 2026

Bug Description
I keep getting "Unable to connect to API due to poor internet connection" like every 49 out of 50 attempts to use Claude Code. It's basically unusable out of the blue. I can't think of anything that would have changed to make this start. Claude.ai took a stab at debugging it and is convinced it's something to do with Cloudflare's bot protection challenge and maybe my home network's public IP.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.50
  • Feedback ID:

Errors

[{"error":"Error: Connection error.\n    at makeRequest (/$bunfs/root/claude:1259:4547)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-23T05:10:16.739Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/user/.local/share/claude/versions/2.0.50 (expected in multi-process scenarios)\n    at JL0 (/$bunfs/root/claude:2641:1622)\n    at b_A (/$bunfs/root/claude:2639:12709)\n    at async pA7 (/$bunfs/root/claude:2639:13911)\n    at async Ex (/$bunfs/root/claude:2641:236)\n    at async <anonymous> (/$bunfs/root/claude:2641:12469)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-23T05:10:23.311Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/claude:32:10636)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/claude:31:3314)\n    at request (/$bunfs/root/claude:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-23T05:10:59.829Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/user/.local/share/claude/versions/2.0.50 (expected in multi-process scenarios)\n    at JL0 (/$bunfs/root/claude:2641:1622)\n    at b_A (/$bunfs/root/claude:2639:12709)\n    at async pA7 (/$bunfs/root/claude:2639:13911)\n    at async Ex (/$bunfs/root/claude:2641:236)\n    at async <anonymous> (/$bunfs/root/claude:2641:12469)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-23T05:17:58.654Z"},{"error":"Error: Request was aborted.\n    at H (/$bunfs/root/claude:2026:1477)\n    at abort (unknown)\n    at tW (/$bunfs/root/claude:2733:62986)\n    at <anonymous> (/$bunfs/root/claude:2722:3633)\n    at <anonymous> (/$bunfs/root/claude:815:497)\n    at <anonymous> (/$bunfs/root/claude:700:51118)\n    at G (/$bunfs/root/claude:815:490)\n    at emit (/$bunfs/root/claude:807:1505)\n    at processInput (/$bunfs/root/claude:814:740)\n    at flushIncomplete (/$bunfs/root/claude:814:564)","timestamp":"2025-11-23T05:18:43.425Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/user/.local/share/claude/versions/2.0.50 (expected in multi-process scenarios)\n    at JL0 (/$bunfs/root/claude:2641:1622)\n    at b_A (/$bunfs/root/claude:2639:12709)\n    at async pA7 (/$bunfs/root/claude:2639:13911)\n    at async Ex (/$bunfs/root/claude:2641:236)\n    at async <anonymous> (/$bunfs/root/claude:2641:12469)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-23T05:18:45.081Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/user/.local/share/claude/versions/2.0.50 (expected in multi-process scenarios)\n    at JL0 (/$bunfs/root/claude:2641:1622)\n    at b_A (/$bunfs/root/claude:2639:12709)\n    at async pA7 (/$bunfs/root/claude:2639:13911)\n    at async Ex (/$bunfs/root/claude:2641:236)\n    at async <anonymous> (/$bunfs/root/claude:2641:12469)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-23T05:18:52.512Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/user/.local/share/claude/versions/2.0.50 (expected in multi-process scenarios)\n    at JL0 (/$bunfs/root/claude:2641:1622)\n    at b_A (/$bunfs/root/claude:2639:12709)\n    at async pA7 (/$bunfs/root/claude:2639:13911)\n    at async Ex (/$bunfs/root/claude:2641:236)\n    at async <anonymous> (/$bunfs/root/claude:2641:12469)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-23T05:19:01.123Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/user/.local/share/claude/versions/2.0.50 (expected in multi-process scenarios)\n    at JL0 (/$bunfs/root/claude:2641:1622)\n    at b_A (/$bunfs/root/claude:2639:12709)\n    at async pA7 (unknown)\n    at async Ex (unknown)\n    at unknown\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-23T05:20:06.594Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/claude:14:14722)\n    at <anonymous> (/$bunfs/root/claude:32:10217)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/claude:31:1146)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:248:22)\n    at processTicksAndRejections (native:7:39)\n    

Note: Error logs were truncated.

View original on GitHub ↗

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