🌐
Reddit
reddit.com › r/anthropic › claude code: constantly seeing 'api error (request timed out...)' - retrying in .. seconds.. (attempt x/10)' on ubuntu 24.04.2 lts
r/Anthropic on Reddit: Claude Code: constantly seeing 'API Error (Request timed out...)' - Retrying in .. seconds.. (attempt x/10)' on Ubuntu 24.04.2 LTS
July 23, 2025 -

Only happening on Linux dev machine, MacOS not affected or WSL.
In my windows machine on WSL, it's running fine.

great, continue with remaining collections
⎿ API Error (Request timed out.) · Retrying in 1 seconds… (attempt 1/10)
⎿ API Error (Request timed out.) · Retrying in 1 seconds… (attempt 2/10)
⎿ API Error (Request timed out.) · Retrying in 2 seconds… (attempt 3/10)
⎿ API Error (Request timed out.) · Retrying in 5 seconds… (attempt 4/10)
⎿ API Error (Request timed out.) · Retrying in 9 seconds… (attempt 5/10)
⎿ API Error (Request timed out.) · Retrying in 17 seconds… (attempt 6/10)
⎿ API Error (Request timed out.) · Retrying in 36 seconds… (attempt 7/10)
⎿ API Error (Request timed out.) · Retrying in 40 seconds… (attempt 8/10)
⎿ API Error (Request timed out.) · Retrying in 1 seconds… (attempt 1/10)
⎿ API Error (Request timed out.) · Retrying in 1 seconds… (attempt 2/10)
⎿ API Error (Request timed out.) · Retrying in 2 seconds… (attempt 3/10)
⎿ API Error (Request timed out.) · Retrying in 4 seconds… (attempt 4/10)
⎿ API Error (Request timed out.) · Retrying in 40 seconds… (attempt 9/10)
⎿ API Error (Request timed out.) · Retrying in 8 seconds… (attempt 5/10)
⎿ API Error (Request timed out.) · Retrying in 20 seconds… (attempt 6/10)
⎿ API Error (Request timed out.) · Retrying in 34 seconds… (attempt 10/10)
⎿ API Error (Request timed out.) · Retrying in 39 seconds… (attempt 7/10)
⎿ API Error (Request timed out.) · Retrying in 39 seconds… (attempt 8/10)
⎿ API Error (Request timed out.) · Retrying in 37 seconds… (attempt 9/10)
⎿ API Error (Request timed out.) · Retrying in 35 seconds… (attempt 10/10)

🌐
GitHub
github.com › anthropics › claude-code › issues › 2728
Claude Code: constantly seeing 'API Error (Request timed out...)' - Retrying in .. seconds.. (attempt x/10)' · Issue #2728 · anthropics/claude-code
June 29, 2025 - ● Read(tests/utils/factories.py) ⎿ Read 459 lines (ctrl+r to expand) ⎿ API Error: Request timed out. /model sonnet ⎿ Set model to sonnet (claude-sonnet-4-20250514)
Published   Jun 29, 2025
🌐
Reddit
reddit.com › r/claudeai › megathread for claude performance discussion - starting june 1
r/ClaudeAI on Reddit: Megathread for Claude Performance Discussion - Starting June 1
June 1, 2025 -

Last week's Megathread: https://www.reddit.com/r/ClaudeAI/comments/1kuv6bg/megathread_for_claude_performance_discussion/

Status Report for last week: https://www.reddit.com/r/ClaudeAI/comments/1l0lk3r/status_report_claude_performance_observations/

Why a Performance Discussion Megathread?

This Megathread should make it easier for everyone to see what others are experiencing at any time by collecting all experiences. Most importantly, this will allow the subreddit to provide you a comprehensive weekly AI-generated summary report of all performance issues and experiences, maximally informative to everybody. See the previous week's summary report here https://www.reddit.com/r/ClaudeAI/comments/1l0lk3r/status_report_claude_performance_observations/

It will also free up space on the main feed to make more visible the interesting insights and constructions of those using Claude productively.

What Can I Post on this Megathread?

Use this thread to voice all your experiences (positive and negative) as well as observations regarding the current performance of Claude. This includes any discussion, questions, experiences and speculations of quota, limits, context window size, downtime, price, subscription issues, general gripes, why you are quitting, Anthropic's motives, and comparative performance with other competitors.

So What are the Rules For Contributing Here?

All the same as for the main feed (especially keep the discussion on the technology)

  • Give evidence of your performance issues and experiences wherever relevant. Include prompts and responses, platform you used, time it occurred. In other words, be helpful to others.

  • The AI performance analysis will ignore comments that don't appear credible to it or are too vague.

  • All other subreddit rules apply.

Do I Have to Post All Performance Issues Here and Not in the Main Feed?

Yes. This helps us track performance issues, workarounds and sentiment

🌐
Reddit
reddit.com › r/claude › is it me or is it claude doing rate limiting? api error (request timed out.) · retrying in x seconds… (attempt x/xx)
r/claude on Reddit: Is it me or is it Claude doing Rate Limiting? API Error (Request timed out.) · Retrying in X seconds… (attempt X/XX)
September 10, 2025 -

I can work with Claude Code CLI pretty well, but sometimes I get these API timeout errors... Now I'm asking myself if this is me or if Claude is rate limiting their service for performance reasons.

I don't know if you feel the same, but it feels like Claude is doing this intentionally to save server costs... What do you think about that?

Also sometimes it feels like Claude is rejecting kind of simple requests which feels to me like... "No I do not want to answer that... you can do this stupid simple task on your own..." which is sometimes good - Then I think "Ok you're right, I will do this myself, don't need to waste compute power on that stupid task." But mostly it's super annoying because it wastes a lot of time.

So what do YOU think? Is it ME or is it Claude?

Here is what the timeout pattern looks like with typical exponential retry logic:

  ⎿  API Error (Request timed out.) · Retrying in 1 seconds… (attempt 1/10)
  ⎿  API Error (Request timed out.) · Retrying in 1 seconds… (attempt 2/10)
  ⎿  API Error (Request timed out.) · Retrying in 2 seconds… (attempt 3/10)
  ⎿  API Error (Request timed out.) · Retrying in 5 seconds… (attempt 4/10)
  ⎿  API Error (Request timed out.) · Retrying in 9 seconds… (attempt 5/10)
  ⎿  API Error (Request timed out.) · Retrying in 17 seconds… (attempt 6/10)
  ⎿  API Error (Request timed out.) · Retrying in 35 seconds… (attempt 7/10)
  ⎿  API Error (Request timed out.) · Retrying in 39 seconds… (attempt 8/10)
  ⎿  API Error (Request timed out.) · Retrying in 34 seconds… (attempt 9/10)
  ⎿  API Error (Request timed out.) · Retrying in 39 seconds… (attempt 10/10)
🌐
Reddit
reddit.com › r/claudecode › "request timed out" errors when using claude code.
r/ClaudeCode on Reddit: "Request timed out" errors when using Claude Code.
October 19, 2025 -

Hey everyone,

Lately I’ve been getting this error almost every day:

Request timed out.
Retrying in 0 seconds… (attempt 4/10)

My internet connection is fine; Codex, Cursor, and other tools work perfectly. It only happens with Claude Code.

Restarting VS Code or the network doesn’t fix it. The only thing that seems to work is restarting the PC, but even then the issue eventually comes back.

It happens on Terminal, the VS Code extension, Sonnet 4.5, or haiko models.

Claude’s status page always says “All Systems Operational.”

Is anyone else seeing this issue from time to time? Or is there a known cause/workaround?

🌐
Reddit
reddit.com › r/claudecode › claude code: constantly seeing 'api error (request timed out...)' - retrying in .. seconds.. (attempt x/10)' on ubuntu 24.04.2 lts
r/ClaudeCode on Reddit: Claude Code: constantly seeing 'API Error (Request timed out...)' - Retrying in .. seconds.. (attempt x/10)' on Ubuntu 24.04.2 LTS
July 23, 2025 -

Only happening on Linux dev machine, MacOS not affected or WSL.
In my windows machine on WSL, it's running fine.

`great, continue with remaining collections
⎿ API Error (Request timed out.) · Retrying in 1 seconds… (attempt 1/10)
⎿ API Error (Request timed out.) · Retrying in 1 seconds… (attempt 2/10)
⎿ API Error (Request timed out.) · Retrying in 2 seconds… (attempt 3/10)
⎿ API Error (Request timed out.) · Retrying in 5 seconds… (attempt 4/10)
⎿ API Error (Request timed out.) · Retrying in 9 seconds… (attempt 5/10)
⎿ API Error (Request timed out.) · Retrying in 17 seconds… (attempt 6/10)
⎿ API Error (Request timed out.) · Retrying in 36 seconds… (attempt 7/10)
⎿ API Error (Request timed out.) · Retrying in 40 seconds… (attempt 8/10)
⎿ API Error (Request timed out.) · Retrying in 1 seconds… (attempt 1/10)
⎿ API Error (Request timed out.) · Retrying in 1 seconds… (attempt 2/10)
⎿ API Error (Request timed out.) · Retrying in 2 seconds… (attempt 3/10)
⎿ API Error (Request timed out.) · Retrying in 4 seconds… (attempt 4/10)
⎿ API Error (Request timed out.) · Retrying in 40 seconds… (attempt 9/10)
⎿ API Error (Request timed out.) · Retrying in 8 seconds… (attempt 5/10)
⎿ API Error (Request timed out.) · Retrying in 20 seconds… (attempt 6/10)
⎿ API Error (Request timed out.) · Retrying in 34 seconds… (attempt 10/10)
⎿ API Error (Request timed out.) · Retrying in 39 seconds… (attempt 7/10)
⎿ API Error (Request timed out.) · Retrying in 39 seconds… (attempt 8/10)
⎿ API Error (Request timed out.) · Retrying in 37 seconds… (attempt 9/10)
⎿ API Error (Request timed out.) · Retrying in 35 seconds… (attempt 10/10)

🌐
Cursor IDE
cursor-ide.com › blog › claude-code-api-timeout-error-fix
How to Fix Claude Code API Error: Request Timed Out (2025 Complete Guide) - Cursor IDE 博客
July 7, 2025 - Claude Code API timeout errors occur when requests exceed the maximum allowed response time, typically due to network latency, server load, or improper request configuration.
🌐
Reddit
reddit.com › r/claudeai › claude code api error: connection error.
r/ClaudeAI on Reddit: Claude Code API Error: Connection error.
April 1, 2025 -

Is anybody else having this issue? It just started happening 2 days ago. I am using WSL in VS Code. How can I resolve this? It will sometimes work, but sometimes not. I have to constantly ask it to continue, and even though I am getting an API Error it is deducting from my Athropic credit balance. 10 of these "please continue" requests cost me $0.11.

Find elsewhere
🌐
Reddit
reddit.com › r/anthropic › two days in a row - claude code not usable
r/Anthropic on Reddit: Two days in a row - Claude Code not usable
August 20, 2025 -

Two days in a row now Claude Code is responding with "API Error (Request timed out.)" - and this is after logging out, upgrading it, changing to API-based billing and all.

Support hasn't been of help either - it's just an AI bot that supposedly refers you to a human, but never actually does.

Anyone else getting this? I'd understand if this was a free product, but for a service that I'm paying money for, this isn't really impressive.

🌐
ClaudeLog
claudelog.com › home › faqs › api errors
why-am-i-getting-claude-code-api-errors | ClaudeLog
Claude Code API errors are usually temporary connectivity issues, not actual API outages. Most resolve quickly with basic troubleshooting. Connection timeout: Network routing delay · 503 Service Unavailable: Server temporarily overloaded · ...
🌐
GitHub
github.com › anthropics › claude-code › issues › 6572
[BUG] API Error (request timed out) in Claude Code in vscode · Issue #6572 · anthropics/claude-code
August 26, 2025 - Subscription auth succeeds but API calls timeout · Open claude code in vscode · Ask anything. API Error (Request timed out.) (repeatedly) /logout · /login · Authenticate subscription (Pro) via website · Message: successful · Seems to work (/status gives correct info) Try any command ·
Published   Aug 26, 2025
🌐
GitHub
github.com › anthropics › claude-code › issues › 2314
Persistent API Request Timeout After Multiple Retry Attempts · Issue #2314 · anthropics/claude-code
June 19, 2025 - (attempt 9/10) ⎿ API Error (Request timed out.) · Retrying in 35 seconds… (attempt 10/10) ... [{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:892:11)\n at execSync (node:child_process:964:15)\n at EZ (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:659:3921)\n at file:///Us
Published   Jun 19, 2025
🌐
Reddit
reddit.com › r/claudeai › claude api error: “the data couldn’t be read because it isn’t in the correct format”
r/ClaudeAI on Reddit: Claude API error: “The data couldn’t be read because it isn’t in the correct format”
January 18, 2024 -

I have a custom program that has been working fine with Claude API for months, but today started getting the error, The data couldn’t be read because it isn’t in the correct format. At the same time, I'm also getting lots of timeout errors. It feels like the API servers are having issues.

Anyone else seeing problems with the API today?


Request to https://api.anthropic.com/v1/messages:

{
    "model": "claude-3-haiku-20240307",
    "temperature": 0.1,
    "max_tokens": 4096,
    "system": "Please respond in the form of a bulleted list. Do not include an introduction or description of the list. Format as a Markdown list with no introduction.",
    "messages": [
        {
            "role": "user",
            "content": "list 10 popular facebook groups"
        }
    ]
}

Response message in result->error:

The data couldn’t be read because it isn’t in the correct format.
🌐
Reddit
reddit.com › r/sillytavernai › claude api proxy: 504 gateway time-out issue
r/SillyTavernAI on Reddit: Claude API Proxy: 504 Gateway Time-out Issue
January 28, 2025 -

I'm encountering a weird issue with Claude API calls through an api proxy in SillyTavern. The proxy provides openai-compatible api. Here's the situation:

Problem:

  • Getting consistent 504 Gateway Time-out errors when trying to use Claude(haiku, sonnet, opus) through a proxy

  • This started happening after a recent ST update

  • Both streaming and non-streaming requests fail with the same error

  • Changing prompts and params did not help.

Console Output:

Chat completion request error:  Gateway Time-out <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>

What makes this strange:

  1. The same proxy works fine with other models (non-Claude)

  2. The same proxy + Claude combination works perfectly in other apps (ChatBox app and my own node-fetch test)

  3. Even rolled back to an old ST commit - same issue persists

This seems to be specific to SillyTavern + Claude + this proxy combination. I've compared the POST request contents but couldn't spot any differences that might cause this.

Unfortunately, I don't have access to other Claude APIs to test if this is a ST-specific issue with Claude handling.

Has anyone else experienced something similar or might have insights on what could be causing this?

Top answer
1 of 2
1
You can find a lot of information for common issues in the SillyTavern Docs: https://docs.sillytavern.app/ . The best place for fast help with SillyTavern issues is joining the discord! We have lots of moderators and community members active in the help sections. Once you join there is a short lobby puzzle to verify you have read the rules: https://discord.gg/sillytavern . If your issues has been solved, please comment "solved" and automoderator will flair your post as solved. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2 of 2
1
The error you are seeing means, if the response is used correctly by the proxy, that the proxy itself doesn't get a response from the upstream before the predefined time-out time. I'm not too familiar with the proxies used for SillyTavern, but it's very unlikely an issue on your end. You call the proxy -> the proxy calls the API provider(let's assume Anthropic) -> the proxy is now waiting for a response from the API -> the response doesn't arrive to the proxy in a reasonable amount of time -> the proxy stops waiting for a response and sends you a 504. It's fully possible that the proxy isn't configured to handle the response it is getting from the API and as such keeps the connection open despite getting a response, for example the proxy might be getting a response from the API indicating that the proxy is banned, but because it doesn't handle this response it keeps waiting for a regular response, eventually reaching it's time out limit and returning this 504 response to you. It's also possible(but to me, very unlikely) that something you are sending to the proxy, which it then sends on to the API, causes the API to respond in some weird unexpected way, that the proxy is not set up to handle, but troubleshooting this from your side is nothing short of a nightmare.
🌐
GitHub
github.com › anthropics › claude-code › issues › 2046
[BUG] API Error (Request timed out.) · Retrying in 1 seconds… (attempt 1/10) · Issue #2046 · anthropics/claude-code
June 13, 2025 - Error: File has not been read yet. Read it first before writing to it. ⎿ API Error (Request timed out.) · Retrying in 1 seconds… (attempt 1/10) ⎿ API Error (Request timed out.) · Retrying in 1 seconds… (attempt 2/10) ⎿ API Error (Request timed out.) ·
Published   Jun 13, 2025
🌐
GitHub
github.com › anthropics › claude-code › issues › 128
Network Timeout Errors Occurring Frequently in API Calls · Issue #128 · anthropics/claude-code
December 28, 2024 - You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. ... Bug Description ApiError: read ETIMEDOUT happening almost every request. Some response tokens are generated, but it halts after a short whle with this error ... You can’t perform that action at this time.
Published   Feb 26, 2025
🌐
Claude
docs.claude.com › en › api › errors
Errors - Claude Docs
We do not recommend setting a large ... API: Some networks may drop idle connections after a variable period of time, which can cause the request to fail or timeout without receiving a response from Anthropic....
🌐
GitHub
github.com › anthropics › claude-code › issues › 1771
[BUG] API Error (Request timed out) in Remote SSH Dev Container on Linux Host · Issue #1771 · anthropics/claude-code
April 9, 2025 - In VS Code, open the cloned folder using the "Open Folder in Container" command, which utilizes the .devcontainer configuration in the repository. Once the dev container is built and running, open a terminal and start with claude --dangerously-skip-permissions ... The first one or two tasks succeed. However, subsequent commands fail, displaying the following error message and retry attempts: API Error (Request timed out.)
Published   Jun 07, 2025