Getting Error Message in Socket.php

Apr 3, 2014 at 1:58 PM
Hi All,

If any one suggest me , how to fix this issue.

Suddenly getting this type of error message.

Fatal error: Uncaught exception 'Microsoft_Http_Client_Adapter_Exception' with message 'Invalid chunk size "" unable to read chunked body' in D:\xampp\htdocs\MyProject\Microsoft\Http\Client\Adapter\Socket.php:358 Stack trace: #0 D:\xampp\htdocs\MyProject\Microsoft\Http\Client.php(959): Microsoft_Http_Client_Adapter_Socket->read() #1 [internal function]: Microsoft_Http_Client->request('GET') #2 D:\xampp\htdocs\MyProject\Microsoft\WindowsAzure\RetryPolicy\NoRetry.php(63): call_user_func_array(Array, Array) #3 D:\xampp\htdocs\MyProject\Microsoft\WindowsAzure\Storage.php(488): Microsoft_WindowsAzure_RetryPolicy_NoRetry->execute(Array, Array) #4 D:\xampp\htdocs\MyProject\Microsoft\WindowsAzure\Storage\Blob.php(1708): Microsoft_WindowsAzure_Storage->_performRequest('container', Array, 'GET', Array, false, NULL, 'b', 'l') #5 D:\xampp\htdocs\MyProject\get_BlobResult.php(274): Microsoft_WindowsAzure_Storage_Blob->listBlobs('container') #6 {main} thrown in D:\xampp\htdocs\MyProject\Microsoft\Http\Client\Adapter\Socket.php on line 358
Apr 4, 2014 at 6:18 AM
Is there any one update me. How to solve this issue. I am not able to move further code. Please any one help?

Thanks
Tamilmani Mohan
Jun 3, 2014 at 10:48 AM
I am using simple code to get the list of blob files.

$blobstorageClient = new Microsoft_WindowsAzure_Storage_Blob('blob.core.windows.net', XXXXXXXXX,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX);
$blob_list = $blobstorageClient->listBlobs($blobname);

But still i am getting same error message. Below error message in not come all the time.

Fatal error: Uncaught exception 'Microsoft_Http_Client_Adapter_Exception' with message 'Invalid chunk size "" unable to read chunked body' in D:\xampp\htdocs\MyProject\Microsoft\Http\Client\Adapter\Socket.php:358 Stack trace: #0 D:\xampp\htdocs\MyProject\Microsoft\Http\Client.php(959): Microsoft_Http_Client_Adapter_Socket->read() #1 [internal function]: Microsoft_Http_Client->request('GET') #2 D:\xampp\htdocs\MyProject\Microsoft\WindowsAzure\RetryPolicy\NoRetry.php(63): call_user_func_array(Array, Array) #3 D:\xampp\htdocs\MyProject\Microsoft\WindowsAzure\Storage.php(488): Microsoft_WindowsAzure_RetryPolicy_NoRetry->execute(Array, Array) #4 D:\xampp\htdocs\MyProject\Microsoft\WindowsAzure\Storage\Blob.php(1708): Microsoft_WindowsAzure_Storage->_performRequest('container', Array, 'GET', Array, false, NULL, 'b', 'l') #5 D:\xampp\htdocs\MyProject\get_BlobResult.php(274): Microsoft_WindowsAzure_Storage_Blob->listBlobs('container') #6 {main} thrown in D:\xampp\htdocs\MyProject\Microsoft\Http\Client\Adapter\Socket.php on line 358

If any suggest me how to fix this issue.

Thanks
Tamilmani Mohan