Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Error: [GuzzleHttp\Exception\RequestException] Error creating resource: [message] fopen(http://xxx.blob.core.windows.net/xxx/xxx): failed to open stream: HTTP request failed! #281

Open
danielignatius opened this issue Feb 13, 2021 · 0 comments

Comments

@danielignatius
Copy link

danielignatius commented Feb 13, 2021

We had never received this error message before. It was only appearing sometime early this year. Nothing has changed but it stopped working and producing this error.

Which service(blob, file, queue, table) does this issue concern?

Blob

Which version of the SDK was used?

1.5

What's the PHP/OS version?

PHP 7.2 / OS version: Microsoft Windows NT 10.0.14393.0 (Hosted via Azure Webapp)

What problem was encountered?

2021-02-13 23:46:01 Error: [GuzzleHttp\Exception\RequestException] Error creating resource: [message] fopen(http://xxx.blob.core.windows.net/xxx/xxx): failed to open stream: HTTP request failed!
[file] D:\home\site\wwwroot\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 329

Steps to reproduce the issue?

    $connectionString = $this->details['AZURECONNECTIONSTRING'];
    $blobRestProxy = BlobRestProxy::createBlobService($connectionString);
    
        try{
            $imageblob = $blobRestProxy->getBlob("img", $profileImgUrl);
            if($imageblob){
                $profileImg = $this->details['READPROFILEIMAGE'].'/'.$profileImgUrl;
            }
        }
        catch(ServiceException $e){
            $profileImg = $this->details['READPROFILEIMAGE'].'/profile/default.jpg';
        }
    }
    return $profileImg;

Have you found a mitigation/solution?

No

Is there a failing request ID related to this problem returned by server? What is it?

No

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant