If an upload request fails due to exceeding the max number of retries, Uploadcare::Exception::RequestError is thrown without a message, which makes it difficult to debug.
Steps to reproduce
Set max_request_tries to 1
Upload a file from URL: Uploadcare::Uploader.upload(url)
In some cases, it will fail with Uploadcare::Exception::RequestError because max_request_tries also limits the number of requests to /from_url/status/
Expected behavior
Uploadcare::Exception::RequestError provides a message describing the failure reason OR max_request_tries doesn't limit the number of status polling requests
Describe the bug
If an upload request fails due to exceeding the max number of retries,
Uploadcare::Exception::RequestError
is thrown without a message, which makes it difficult to debug.Steps to reproduce
max_request_tries
to 1Uploadcare::Uploader.upload(url)
Uploadcare::Exception::RequestError
becausemax_request_tries
also limits the number of requests to/from_url/status/
Expected behavior
Uploadcare::Exception::RequestError
provides a message describing the failure reason ORmax_request_tries
doesn't limit the number of status polling requests