-
Notifications
You must be signed in to change notification settings - Fork 39
Recode storage authentication requests to use English locale #55
Comments
After a bit of debugging and getting the content of XML of the GET call, it says The Date header in the request is incorrect.
The header looks like this in R
My locale settings (which are used in the call) are:
|
Hi, We did have a few similar issues earlier in the year. Have you recently update the package? Many thanks |
I installed today with |
Originally there was no need to get the Key as it would get the key during the function automatically. sc <- createAzureContext(tenantID = "{TID}", clientID = "{CID}", authKey= "{KEY}")
azureListStorageContainers(sc, storageAccount = "bnosacdata4training") There was some work to change this so a key could be provided. That way the user wouldn't need admin access. (which you need to get the key). Do any of the other blob functions work or is this just |
The proposed solution does not work. This is what I get. > azureListStorageContainers(sc, storageAccount = "bnosacdata4training")
Error in azureListStorageContainers(sc, storageAccount = "bnosacdata4training") :
Error: No resourceGroup provided: Use resourceGroup argument or set in AzureContext
> azureListStorageContainers(sc, resourceGroup = "bnosac-training", storageAccount = "bnosacdata4training")
|
That looks like a locale problem. The Azure storage REST API constructs "canonical headers" as follows (reference):
So, if you're using a different locale, this is a bug in the package - we should transcode the locale. As a workaround, can you try using an English locale? On my test machine I get: > Sys.getlocale()
[1] "LC_COLLATE=English_United Kingdom.1252;LC_CTYPE=English_United Kingdom.1252;LC_MONETARY=English_United Kingdom.1252;LC_NUMERIC=C;LC_TIME=English_United Kingdom.1252" |
@andrie Thanks for the feedback.
|
@jwijffels Thanks for confirming. I have now marked this as a bug. |
@jwijffels Can you please test again using the latest version (v0.2.4)? I think this has now been fixed. |
Looks fine for the error I reported about When I serialise as JSON and put the data as blob, this is working fine.
When I use the file argument, I get a similar authentication signature error. I don't know if this is the type of error, or if I'm using the function incorrectly.
This also does not work as I was expecting it to work
|
I get the same error as in the previous comment. |
My workaround for an image file was simply to send it raw via the |
I'm trying to use Azure Blob storage as follows but I'm getting an authentication error.:
What am I doing wrong here?
The text was updated successfully, but these errors were encountered: