Skip to content

Commit

Permalink
feat: better error logging for remote runtime (#6805)
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyaoww authored Feb 19, 2025
1 parent df8bbc2 commit 003ebc0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions openhands/runtime/impl/remote/remote_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ def _check_existing_runtime(self) -> bool:
return False
self.log('debug', f'Error while looking for remote runtime: {e}')
raise
except requests.exceptions.JSONDecodeError as e:
self.log(
'error',
f'Invalid JSON response from runtime API: {e}. URL: {self.config.sandbox.remote_runtime_api_url}/sessions/{self.sid}. Response: {response}',
)
raise

if status == 'running':
return True
Expand Down

0 comments on commit 003ebc0

Please sign in to comment.