warp icon indicating copy to clipboard operation
warp copied to clipboard

Response stream finished unexpectedly with internal error: Anthropic API error - 400 Bad Request

Open psalvitti opened this issue 1 year ago • 5 comments

Pre-submit Checks

Describe the bug

I don't know what the bug is.

I was in a conversation on restyling a simple component, and I attached a JPEG for visual guidance. Warp was 'warping' the request and then got the bad request response. Now, EVERY prompt I enter cannot be processed as they all result in Bad Request

To reproduce

Not sure how I got into that state, and now:

  1. Type ANY prompt
  2. Warp fails regardless of whether an image is attached or not

Here's the latest conversation ID: {"conversation_id":"4f914d91-abfd-4a12-b952-f3b7c29aa0af"}

Expected behavior

I expected Warp to begin working through tasks designed to restyle code underlying a simple hero component.

Screenshots, videos, and logs

Image

Operating system (OS)

macOS

Operating system and version

15.6.1

Shell Version

zsh 5.9 (arm-apple-darwin23.0.0)

Current Warp version

v0.2025.09.17.08.11.stable_02

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

25-Sep-2025 10:30 am EST

Additional context

No response

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

psalvitti avatar Sep 25 '25 15:09 psalvitti

I was hoping to try this tool out as well. I am getting a similar error:

I'm sorry, I couldn't complete that request.

Response stream finished unexpectedly with internal error: Anthropic API error: POST "https://api.anthropic.com/v1/messages": 400 Bad Request (Request-ID: req_011CTj4yFUC9id8uARpxS9S6) {"type":"error","error":{"type":"invalid_request_error","message":"messages.32: tool_use ids were found without tool_result blocks immediately after: toolu_01FddTeViMDopia2sReeMqGA. Each tool_use block must have a corresponding tool_result block in the next message."},"request_id":"req_011CTj4yFUC9id8uARpxS9S6"}

daveelux avatar Oct 02 '25 21:10 daveelux

@daveelux This seperate error is being tracked here: https://github.com/warpdotdev/Warp/issues/7679

dannyneira avatar Oct 07 '25 15:10 dannyneira

We need a bit more information before we can continue triaging this issue.

If you're still hitting this, could you try reproducing it on the latest version of Warp and share logs along with a screenshot or short video if possible?

If there's no activity after 3 business days, we'll close this out to help keep the tracker tidy.


This is part of an automated backlog review and may be inaccurate. If you believe this assessment is wrong, please let us know.

warp-factories[bot] avatar Apr 19 '26 18:04 warp-factories[bot]

This issue has been automatically closed because it was labeled needs-info and received no response for 3 business days. If you have the requested information, please reply and we will reopen.

github-actions[bot] avatar Apr 23 '26 00:04 github-actions[bot]

Same here. Get this error: I'm sorry, I couldn't complete that request.

Response stream finished unexpectedly with internal error: Anthropic API error: POST "https://api.anthropic.com/v1/messages?beta=true": 400 Bad Request (Request-ID: req_011CcYCY6i29tXG4jSSr2XpK) {"type":"error","error":{"type":"invalid_request_error","message":"messages.4.content.3.image.source.base64.data: At least one of the image dimensions exceed max allowed size for many-image requests: 2000 pixels"},"request_id":"req_011CcYCY6i29tXG4jSSr2XpK"}

Then the only solution is to copy thread and start a new terminal and share it and have Warp go through all the work that was done before. And, of course, inevitably, it will crash again. Rinse and Repeat.

ksarathySFDC avatar Jun 29 '26 20:06 ksarathySFDC