Warning: usleep(): Number of microseconds must be greater than or equal to 0
JeroenVanLeusden opened this issue · comments
Detailed description
Occasionally see this error in the logs. Don't know how to reproduce yet.
Warning: usleep(): Number of microseconds must be greater than or equal to 0 in /data/web/magento2/vendor/caseyamcl/guzzle_retry_middleware/src/GuzzleRetryMiddleware.php on line 282
Possible implementation
Set minimum delay to be zero?
This is an interesting bug. I can ensure a non-negative number, but it would be good to know what is generating a negative timeout. Can you provide more details about the context? Is it possible to provide the URL your using the library to access, or other contextual info?
Not yet, It's a very rare warning. I'll keep an eye on the logs and hopefully can give you some more information when it happens again.