Azure PHP SDK createBlobService() not working - fails at $httpClient = $this- httpClient() in ServicesBuilder.php
We are writing a PHP application to run in Azure but the Azure SDK does not seem to work when trying to use Azure Storage. Here is the relevant code snippet:
$connectionString = "DefaultEndpointsProtocol=http;AccountName=<accountname>;AccountKey=<accountkey>";echo $connectionString;$blobRestProxy = ServicesBuilder::getInstance()->createBlobService($connectionString);
We are of course doing this at the top of the php file that has the above snippet in it:
require_once 'WindowsAzure\WindowsAzure.php';use WindowsAzure\Common\ServicesBuilder;
Everything after calling 'createBlobService' fails. We dug into it a bit more and found out that the $httpClient = $this->httpClient(); call in the below snippet just kills everything (the call exists in WindowsAzure\Common\ServicesBuilder.php). If
we comment out the $httpClient line and everything below in createQueueService(), the rest of the code in the page will be run (we have some echos and stuff so we know it ran the rest of the page):
public function createQueueService($connectionString)
$settings = StorageServiceSettings::createFromConnectionString(
$connectionString
$httpClient = $this->httpClient();
$serializer = $this->serializer();
$uri = Utilities::tryAddUrlScheme(
$settings->getQueueEndpointUri()
PS. We also found a StackOverflow question asking this exact thing but there's no answer to it:
http://stackoverflow.com/questions/13930880/connect-to-azure-blob-through-azure-website-with-php
We are at a loss and could really use a bit of help here.
Thanks
ArcDatum
Hi ArcDatum,
I understand that you are writing a PHP application for creating a blob service createBlobService() and it doesn't work.
Firstly, Do you receive any error Messages ?
Please check this if you are receving any error codes :
Blob Service Error Codes
Recommend you to follow the steps from this
document
also check 3rd party doc if this of any help
Please feel free to write back to us incase of any queries .
Regards,
Shirisha Paderu.
Disclaimer : This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software
or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet,
and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
Similar Messages
-
There is a new email address on my phone in the apple id password box. My password will not work. How did this happen and how can I change it back?
Of course your password shouldn't work on a different Apple ID. This can happen for many reasons, no worries, just sign out back back in using your own ID.
iOS: Changing the signed-in iTunes Store account
http://support.apple.com/kb/HT1311 -
I have done absalutely nothing to my 4g apple ipod touch, and it over heats, won't hold a charge, and the front camera will not work. I bought this brand new in december, and i've barely used it. I've tried restarting it and everything, I honestly think this is out raging because i spend over $200 on this. To have for music and instagram. I use it about an hour a day, but i've only been using it for about 3 months although i've had it since December. Any suggestions that may help me?
Try:
- A reset. Nothing is lost
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Restore from backup
- Restore to factory settings/new iPod
If still problem make an appointment at the Genius Bar of an Apple store. -
All of my apps on my new ipad2 are not working. I had this iPad about 4 months and nothing bad has happened before this. I need help on how to make my apps stop crashing. All my built in apps are fine though. WHATBCAN I DO TO MAKE MY APPS STOP CRASHING. I ALREADY TURNED IT OFF THEN ON AGAIN AN IT STILL CRASHES. HELPPP!!!!
Try a reset. Hold the Sleep and Home button down for about 10 seconds until you see the Apple logo. Ignore the red slider.
-
my phone doesn't ring when someone is calling, but the sound works otherwise, like the alarm etc. I have tried to fix it in settings but still not working. anyone else have this problem?
Thanks so much but none of that helped. It was driving me crazy because it would back up another external drive. I just changed the name of the drive from iPhoto/iTunes Library to Media Libraries and IT WORKED!! I guess for some reason it didn't like the drive being called iPhoto or iTunes ???? I don't understand but I have tried so many solutions and exchanging things out but the name change did it????!!!
Thank you for your help and replying to this. Guess I made my own issue! -
iphone 4 update complete asking me to follow few more steps and connect to wifi. Now my wifi is not working how to resolve this problem
what happens when yu try to connect to wifi?
-
What has happened to the iPad 2 finger select and drag technique?
Since upgrading to iOS7 it does not work?
I used this all the time to select multple images, approx 75 from an SD card containing 1000 images. Its painful indvidually selecting the imagesWhat would you like us to tell you? If it doesn't work, there is nothing that we users can do about it.
Please submit your feature request to Apple at this link: http://www.apple.com/feedback -
please tell me how to use default pdf reader in firefox ? when i give windows in my pc pdf file open in firefox deafultly but suddenly its not working how to fix this ? pdf not open when i give ok with preview in firefox its not open its offer again same message
In order to change the default pdf reader please see: [[View PDF files in Firefox without downloading them]]
In order to change the file association: [[Applications panel - Set how Firefox handles different types of files]] -
HT1338 why is the video not working with skype on this os
why is the video not working with skype on this os
Try this:
Quit Skype.
Click on the desktop so Finder is active. Hold the option key down and click on Go in the menu bar.
In the drop down, select Library.
Open the Library folder and scroll down to Preferences.
In that folder, there is a file called com.skype.skype.plist. Trash that file.
Now try Skype. -
signed up twice for adobe pdf export to word and still not working - anyone else have this problem?
In XI.
I can’t just export to word as I have done in the past in one simple click.
Convert to button is greyed out.
Now I have to save the pdf file on c drive when I am in outlook…then goto export pdf file…then find file then export to word.
I bought new computer with windows 8 (which is awful) and then bought pdf export again…
Any thoughts on how I can get back to one simple click again when I open a pdf file from an email in outlook?
Thank you,
Mike -
fter installing 10.6.8 our printers are not working? When will this be fixed?
Which one?
Mine works perfectly.
Have you check the web site to see if there is a updated driver for it there?
Allan -
Our computer crashed that we mainly used iTunes on for upgrades, new purchases, etc. We've downloaded iTunes onto my laptop but none of my apps are in the library. We've made this laptop an authorized computer, but it's still not working. Why is this?
See Recover your iTunes library from your iPod or iOS device.
tt2 -
what do you think is the problem of my macbook, few days ago, the fan is not working its 000rpm, early this morning, it is working already.
What did the prompt look like? Did it look like the image here? http://support.apple.com/kb/TS3742
-
I am using Azure SDK 2.2 and Azure Storage SDK 4.2.1 and storage config. 2.0 in my cloud solution. I am trying to initialize the storage as follows.
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(connectionKey);
// Create the table client.
CloudTableClient tableClient = storageAccount.CreateCloudTableClient();
// Create the table if it doesn't exist.
table = tableClient.GetTableReference(tableName);
table.CreateIfNotExists();
Table.CreateIfNotExists() throws an exception in my dev emulator. I have been seeing this issue for quite sometime. It looks like MSFT has not fixed this issue at all. The same code works fine when I connect to the real Azure storage in the cloud. It just
does not work under emulator. How can I debug anything. If I use Storage SDK 2.1, it works fine in dev emulator. After 3.0, nothing seems to work. Am I only one or anybody else have the same issue. Is there any workaround for this version or should I stick
to the old version. Any help is appreciated.
here is the detail exception.
ex {"The remote server returned an error: (400) Bad Request."}
System.Exception {Microsoft.WindowsAzure.Storage.StorageException}
+ [Microsoft.WindowsAzure.Storage.StorageException]
{"The remote server returned an error: (400) Bad Request."}
Microsoft.WindowsAzure.Storage.StorageException
_className
null string
+ _data
{System.Collections.ListDictionaryInternal}
System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
_dynamicMethods
null object
_exceptionMethod
null System.Reflection.MethodBase
_exceptionMethodString
null string
_helpURL
null string
_HResult
-2146233088 int
+ _innerException
{"The remote server returned an error: (400) Bad Request."}
System.Exception {System.Net.WebException}
+ _ipForWatsonBuckets
8791483017288 System.UIntPtr
_message
"The remote server returned an error: (400) Bad Request."
string
_remoteStackIndex
0 int
_remoteStackTraceString
null string
+ _safeSerializationManager
{System.Runtime.Serialization.SafeSerializationManager}
System.Runtime.Serialization.SafeSerializationManager
_source
null string
+ _stackTrace
{sbyte[192]} object {sbyte[]}
_stackTraceString
null string
_watsonBuckets
null object
_xcode
-532462766 int
+ _xptrs
0 System.IntPtr
+ Data
{System.Collections.ListDictionaryInternal}
System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
HelpLink
null string
HResult
-2146233088 int
+ InnerException
{"The remote server returned an error: (400) Bad Request."}
System.Exception {System.Net.WebException}
+ IPForWatsonBuckets
8791483017288 System.UIntPtr
IsTransient
false bool
Message
"The remote server returned an error: (400) Bad Request."
string
RemoteStackTrace
null string
Source
"Microsoft.WindowsAzure.Storage" string
StackTrace
" at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)\r\n at Microsoft.WindowsAzure.Storage.Table.TableOperation.Execute(CloudTableClient client,
CloudTable table, TableRequestOptions requestOptions, OperationContext operationContext)\r\n at Microsoft.WindowsAzure.Storage.Table.CloudTable.Exists(Boolean primaryOnly, TableRequestOptions requestOptions, OperationContext operationContext)\r\n
at Microsoft.WindowsAzure.Storage.Table.CloudTable.CreateIfNotExists(TableRequestOptions requestOptions, OperationContext operationContext)\r\n at PSI.Applications.RemoteManagement.TraceLogManagement.AzureTableStore.InitializeStorageTable(String tableName,
String connectionKey) in c:\\AzureTraceCloudService\\AzureTableStoreLib\\AzureTableStore.cs:line 27"
string
+ TargetSite
{T ExecuteSync[T](Microsoft.WindowsAzure.Storage.Core.Executor.RESTCommand`1[T], Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy, Microsoft.WindowsAzure.Storage.OperationContext)}
System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}
WatsonBuckets
null object
+ Static members
Thanks,
RaviHi Ravi,
This issue maybe caused by storage client library is still not compatible with storage emulator and that's why your code is failing. I would recommend downgrading your storage client library to the previous version and your code should work just fine,
the best option I think is to upgrade the SDK to the latest version, refer to
http://azure.microsoft.com/blog/2014/08/04/announcing-release-of-visual-studio-2013-update-3-and-azure-sdk-2-4/ for more details.
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Azure Web role scaling not working when using Reserved IP
Hi,
I am using autoscaling feature for long time now on my web role deployment. I've recently create new deployment (with same web role bits) to use a reserved IP. Since that moment, the autoscaling is NOT working anymore. I can see many AutoscaleAction failures
in the Management Portal Operation logs.
When I try to update the role instance count using REST call (via Azure Management Studio of Cerebrata), I get the following error:
Code: BadRequest
Message: A reserved IP cannot be added, removed or changed during deployment update or upgrade.
I cannot find anything about scaling and reserved IP on the net but I can't believe I am the only one in this situation ?!?!
Thanks for your help
Jean Bédard
Regards, JeanHi,
Refer to the
Publish Windows Azure Application Wizard on MSDN, specifically #7 in Configuration Your Settings.
When ‘Deployment Update’ is checked, only the changes since your last deployment will be pushed out to update your services. This is not possible when changing the virtual network settings of the service. To enable full deployments, you have two options:
Uncheck the ‘Deployment update’ checkbox
Click ‘Settings’ on the ‘Deployment update’ item, and select ‘If deployment can’t be updated, do a full deployment’.
Maybe you are looking for
-
Load various apps in different Spaces at login?
Hello all, Is it possible to launch, at login, different apps in each space of Spaces? I'd like upon login to have each one of my four spaces to have apps preloaded. Some apps need to be usable in all spaces, some not. I know you can assign login app
-
Template error while copying page from another application
I am copying a page from one application to another within the same workspace. The page I am copying has several customized template that it uses. When I copy the page to the other application all goes well until I get to the step of assigning the Te
-
How to pass the caught exception in Thread.run back to the main program?
I have following three Java files (simplified from a real world application I am developing, see files at the end of this posting): 1. ThreadTest.java: The main program that invokes the Manager.run() 2. Manager.java: The manager that creates a thread
-
Ipad 2 personal hotspot access serious trouble
I bought an Ipad 2 Wifi only. It can acess wifi network in my house but I can´t conect with my Iphone 4 personal hotspot. It´s very strange because I can have a goood conection with Iphone 4 personal hotspot using my Macbook Pro. Both two gadgets (Ip
-
Create a tree with recursive call for sub-rows
Hello, I would like to create a generated menu dynamically created from values returned by sql. Structure is as follow : Menu | +-- MenuItem <--+ | | +--------+I can't know the maximum depth of the menu. How can I create