flaky-postman-41333
09/26/2025, 6:26 PMRuntimeError: There was an unexpected error while running the agent: KeyError. You can refresh the page or ask the agent to try again.
Terminal Log Error
13:24:01 - openhands:ERROR: agent_controller.py:365 - [Agent Controller 50e60a7285514096b0cb5f63a9021fd3] Error while running the agent (session ID: 50e60a7285514096b0cb5f63a9021fd3): 'command'. Traceback: Traceback (most recent call last):
File "/Users/jwillard/Workspace/OpenHands/openhands/controller/agent_controller.py", line 363, in _step_with_exception_handling
await self._step()
File "/Users/jwillard/Workspace/OpenHands/openhands/controller/agent_controller.py", line 870, in _step
action = self.agent.step(self.state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/Workspace/OpenHands/openhands/agenthub/codeact_agent/codeact_agent.py", line 221, in step
response = self.llm.completion(**params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/Workspace/OpenHands/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 338, in wrapped_f
return copy(f, *args, **kw)
^^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/Workspace/OpenHands/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 477, in __call__
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/Workspace/OpenHands/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 378, in iter
result = action(retry_state)
^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/Workspace/OpenHands/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 400, in <lambda>
self._add_action_func(lambda rs: rs.outcome.result())
^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/.local/share/uv/python/cpython-3.12.11-macos-aarch64-none/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/.local/share/uv/python/cpython-3.12.11-macos-aarch64-none/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/Users/jwillard/Workspace/OpenHands/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 480, in __call__
result = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/Workspace/OpenHands/openhands/llm/llm.py", line 348, in wrapper
convert_non_fncall_messages_to_fncall_messages(
File "/Users/jwillard/Workspace/OpenHands/openhands/llm/fn_call_converter.py", line 892, in convert_non_fncall_messages_to_fncall_messages
params = _extract_and_validate_params(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/Workspace/OpenHands/openhands/llm/fn_call_converter.py", line 677, in _extract_and_validate_params
if 'enum' in matching_tool['parameters']['properties'][param_name]:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'command'
13:24:01 - openhands:WARNING: agent_controller.py:386 - [Agent Controller 50e60a7285514096b0cb5f63a9021fd3] Unknown exception type while running the agent: KeyError.
13:24:01 - openhands:INFO: agent_controller.py:637 - [Agent Controller 50e60a7285514096b0cb5f63a9021fd3] Setting agent(CodeActAgent) state from AgentState.RUNNING to AgentState.ERROR
13:24:01 - openhands:INFO: agent_controller.py:637 - [Agent Controller 50e60a7285514096b0cb5f63a9021fd3] Setting agent(CodeActAgent) state from AgentState.ERROR to AgentState.ERROR
13:24:01 - openhands:ERROR: session.py:433 - Agent status error: RuntimeError: There was an unexpected error while running the agent: KeyError. You can refresh the page or ask the agent to try again.
13:24:01 - openhands:ERROR: session.py:345 - Agent status error: RuntimeError: There was an unexpected error while running the agent: KeyError. You can refresh the page or ask the agent to try again.calm-artist-7206
09/26/2025, 6:28 PMflaky-postman-41333
09/26/2025, 6:32 PMcalm-artist-7206
09/26/2025, 7:29 PMcalm-artist-7206
09/26/2025, 7:30 PMcalm-artist-7206
09/26/2025, 7:32 PMLLM_NATIVE_TOOL_CALLING=true env var)flaky-postman-41333
09/26/2025, 10:53 PMcalm-artist-7206
09/26/2025, 11:11 PMnutritious-balloon-65098
09/26/2025, 11:12 PMcalm-artist-7206
09/26/2025, 11:13 PMnutritious-balloon-65098
09/26/2025, 11:20 PMflaky-postman-41333
09/26/2025, 11:24 PMcalm-artist-7206
09/26/2025, 11:33 PMcalm-artist-7206
09/26/2025, 11:35 PMflaky-postman-41333
09/29/2025, 3:54 PMcalm-artist-7206
09/29/2025, 3:56 PMflaky-postman-41333
10/17/2025, 2:11 AMlitellm.exceptions.APIConnectionError: litellm.APIConnectionError: BedrockException - {"message":"You invoked an unsupported model or your request did not allow prompt caching. See the documentation for more information."}. Received Model Group=claude-3-5-sonnet
Available Model Group Fallbacks=None LiteLLM Retried: 1 times, LiteLLM Max Retries: 2flaky-postman-41333
10/17/2025, 2:15 AMcalm-artist-7206
10/17/2025, 2:50 AMcalm-artist-7206
10/17/2025, 2:53 AMbedrock 🤔flaky-postman-41333
10/17/2025, 3:00 AMmodel_list:
- model_name: anthropic.claude-3-5-sonnet-20241022 # user-facing
litellm_params:
model: bedrock/anthropic.claude-3-5-sonnet-20241022-v2:0
aws_access_key_id: "os.environ/AWS_ACCESS_KEY_ID"
aws_secret_access_key: "os.environ/AWS_SECRET_ACCESS_KEY"
aws_session_token: "os.environ/AWS_SESSION_TOKEN"
aws_region_name: us-west-2calm-artist-7206
10/17/2025, 3:00 AMLLM_NATIVE_TOOL_CALLING=true make run
Or via docker run, add a line to the command, -e LLM_NATIVE_TOOL_CALLING=truecalm-artist-7206
10/17/2025, 3:01 AMcalm-artist-7206
10/17/2025, 3:02 AMcalm-artist-7206
10/17/2025, 3:02 AMcalm-artist-7206
10/17/2025, 3:03 AMlitellm_params:
model: bedrock/anthropic.claude-3.5-sonnet-20241022-v2:0
aws_access_key_id: "os.environ/AWS_ACCESS_KEY_ID"
aws_secret_access_key: "os.environ/AWS_SECRET_ACCESS_KEY"
aws_session_token: "os.environ/AWS_SESSION_TOKEN"
aws_region_name: us-west-2flaky-postman-41333
10/17/2025, 4:09 PMlitellm.exceptions.BadRequestError: litellm.BadRequestError: Error code: 400 - {'error': {'message': 'litellm.BadRequestError: BedrockException - {"message":"The provided model identifier is invalid."}. Received Model Group=anthropic.claude-3-5-sonnet-20241022\nAvailable Model Group Fallbacks=None', 'type': None, 'param': None, 'code': '400'}}calm-artist-7206
10/17/2025, 4:12 PMflaky-postman-41333
10/17/2025, 4:15 PMbedrock/anthropic.claude-3-5-sonnet-20241022-v2:0 to bedrock/anthropic.claude-3.5-sonnet-20241022-v2:0 in the model: field?calm-artist-7206
10/17/2025, 4:16 PMcalm-artist-7206
10/17/2025, 4:17 PMcalm-artist-7206
10/17/2025, 4:18 PMflaky-postman-41333
10/17/2025, 4:19 PMcalm-artist-7206
10/17/2025, 4:25 PMcalm-artist-7206
10/17/2025, 4:27 PMcalm-artist-7206
10/17/2025, 4:32 PMlitellm_proxy/openai/gpt-5)flaky-postman-41333
10/17/2025, 5:19 PMTraceback (most recent call last):
File "/Users/jwillard/Workspace/OpenHands/openhands/controller/agent_controller.py", line 371, in _step_with_exception_handling
await self._step()
File "/Users/jwillard/Workspace/OpenHands/openhands/controller/agent_controller.py", line 878, in _step
action = self.agent.step(self.state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/Workspace/OpenHands/openhands/agenthub/codeact_agent/codeact_agent.py", line 219, in step
response = self.llm.completion(**params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/Workspace/OpenHands/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 338, in wrapped_f
return copy(f, *args, **kw)
^^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/Workspace/OpenHands/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 477, in __call__
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/Workspace/OpenHands/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 378, in iter
result = action(retry_state)
^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/Workspace/OpenHands/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 400, in <lambda>
self._add_action_func(lambda rs: rs.outcome.result())
^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/.local/share/uv/python/cpython-3.12.11-macos-aarch64-none/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/.local/share/uv/python/cpython-3.12.11-macos-aarch64-none/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/Users/jwillard/Workspace/OpenHands/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 480, in __call__
result = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/Workspace/OpenHands/openhands/llm/llm.py", line 351, in wrapper
convert_non_fncall_messages_to_fncall_messages(
File "/Users/jwillard/Workspace/OpenHands/openhands/llm/fn_call_converter.py", line 892, in convert_non_fncall_messages_to_fncall_messages
params = _extract_and_validate_params(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jwillard/Workspace/OpenHands/openhands/llm/fn_call_converter.py", line 677, in _extract_and_validate_params
if 'enum' in matching_tool['parameters']['properties'][param_name]:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'hypothesis_updates'calm-artist-7206
10/17/2025, 5:58 PMflaky-postman-41333
10/17/2025, 6:00 PMcalm-artist-7206
10/17/2025, 6:05 PMflaky-postman-41333
10/17/2025, 6:07 PMlitellm_proxy/anthropic.claude-3-5-sonnet-20241022
I think a hack would be nice for now, and looking forward to v1 UI releasecalm-artist-7206
10/17/2025, 6:11 PMflaky-postman-41333
10/17/2025, 10:54 PMmake run or do i need to rebuild the sandbox container with that change? (I just see there is a version of the openhands code in the container at /openhands/code/ that doesn't update with this change)