Skip to content

Commit a31f5e0

Browse files
fix: Use _send_action_server_request in send_action_for_execution
This ensures that all requests go through the proper error handling path, including the 502 error handling that converts the error to a more helpful AgentRuntimeDisconnectedError message. Fixes #5601
1 parent 2ec2f25 commit a31f5e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

openhands/runtime/impl/action_execution/action_execution_client.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,7 @@ def send_action_for_execution(self, action: Action) -> Observation:
249249
assert action.timeout is not None
250250

251251
try:
252-
with send_request(
253-
self.session,
252+
with self._send_action_server_request(
254253
'POST',
255254
f'{self._get_action_execution_server_host()}/execute_action',
256255
json={'action': event_to_dict(action)},

0 commit comments

Comments
 (0)