OpenHands
OpenHands copied to clipboard
feat: enhance request handling with improved retry logic and logging
- Added logging for retryable errors and retry attempts in the request module.
- Increased the maximum number of retry attempts from 3 to 5.
- Updated the exponential backoff strategy for retries, with a multiplier of 2 and adjusted min/max wait times.
- Increased the default timeout for requests from 10 to 30 seconds.
- Improved error handling to log connection and timeout errors.
These changes aim to provide better visibility into request failures and enhance the robustness of the request handling process.
End-user friendly description of the problem this fixes or functionality that this introduces
- [ ] Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below
Give a summary of what the PR does, explaining any non-trivial design decisions
Link of any specific issues this addresses