I can't reproduce the issue, but the exception was thrown when we've had some connection issues to Azure caused by some DigitalOcean-Azure routing issues.
Have you found a mitigation/solution?
Not yet, but I will investigate and send a PR as usual :-)
Update: as promised (no pun intended), the solution/fix is in #262.
Is there a failing request ID related to this problem returned by server? What is it?
No
What is the storage account name and time frame of your last reproduce? (UTC YYYY/MM/DD hh:mm:ss)
Which service(blob, file, queue, table) does this issue concern?
common
Which version of the SDK was used?
microsoft/azure-storage-common 1.5.0
What's the PHP/OS version?
PHP 7.3, something something Ubuntu
What problem was encountered?
Promises can be rejected with a
$reason
. Sometimes, the$reason
is a string:https://github.com/guzzle/promises/blob/60d379c243457e073cff02bc323a2a86cb355631/src/Promise.php#L237-L240
ServiceRestProxy
expects$reason
to be an exception though:https://github.com/Azure/azure-storage-php/blob/1afd50bb3f89f1fed9de0b1edaf424f37a4bc13a/azure-storage-common/src/Common/Internal/ServiceRestProxy.php#L404-L407
If it's a string, it's not a
RequestException
and it's thenthrow
n which results in an error:Stack trace:
Steps to reproduce the issue?
I can't reproduce the issue, but the exception was thrown when we've had some connection issues to Azure caused by some DigitalOcean-Azure routing issues.
Have you found a mitigation/solution?
Not yet, but I will investigate and send a PR as usual :-) Update: as promised (no pun intended), the solution/fix is in #262.
Is there a failing request ID related to this problem returned by server? What is it?
No
What is the storage account name and time frame of your last reproduce? (UTC YYYY/MM/DD hh:mm:ss)
2020/10/08 11:24:47 UTC