OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

feat: enhance request handling with improved retry logic and logging

Open magic3007 opened this issue 1 month ago • 0 comments

  • 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

magic3007 avatar Jan 11 '25 15:01 magic3007