#586·OpenManus

Error code: 400 tool not found

Author: a-holmCreated Mar 13, 2025Updated Jul 19, 2026
Labels:star: top issue

When running it with model = "claude-3-5-sonnet-20241022"

I sometimes get the following errors:

2025-03-13 11:27:07.422 | ERROR | app.llm:ask_tool:260 - API error: Error code: 400 - {'error': {'code': 'invalid_request_error', 'message': "'tool_call_id' of 'toolu_01UW881cBnaUG7MRtaz1VYPU' not found in 'tool_calls' of previous message.", 'type': 'invalid_request_error', 'param': None}} 2025-03-13 11:27:08.735 | ERROR | app.llm:ask_tool:260 - API error: Error code: 400 - {'error': {'code': 'invalid_request_error', 'message': "'tool_call_id' of 'toolu_01UW881cBnaUG7MRtaz1VYPU' not found in 'tool_calls' of previous message.", 'type': 'invalid_request_error', 'param': None}} 2025-03-13 11:27:10.683 | ERROR | app.llm:ask_tool:260 - API error: Error code: 400 - {'error': {'code': 'invalid_request_error', 'message': "'tool_call_id' of 'toolu_01UW881cBnaUG7MRtaz1VYPU' not found in 'tool_calls' of previous message.", 'type': 'invalid_request_error', 'param': None}} 2025-03-13 11:27:14.164 | ERROR | app.llm:ask_tool:260 - API error: Error code: 400 - {'error': {'code': 'invalid_request_error', 'message': "'tool_call_id' of 'toolu_01UW881cBnaUG7MRtaz1VYPU' not found in 'tool_calls' of previous message.", 'type': 'invalid_request_error', 'param': None}} 2025-03-13 11:27:19.586 | ERROR | app.llm:ask_tool:260 - API error: Error code: 400 - {'error': {'code': 'invalid_request_error', 'message': "'tool_call_id' of 'toolu_01UW881cBnaUG7MRtaz1VYPU' not found in 'tool_calls' of previous message.", 'type': 'invalid_request_error', 'param': None}} 2025-03-13 11:27:33.798 | ERROR | app.llm:ask_tool:260 - API error: Error code: 400 - {'error': {'code': 'invalid_request_error', 'message': "'tool_call_id' of 'toolu_01UW881cBnaUG7MRtaz1VYPU' not found in 'tool_calls' of previous message.", 'type': 'invalid_request_error', 'param': None}}

Usually everything runs fine but sometimes i get that

I run Ubuntu on WSL..

Source: FoundationAgents/OpenManus