AzureSMR icon indicating copy to clipboard operation
AzureSMR copied to clipboard

Unable to access storage blobs without azureActiveContext

Open davefrancis opened this issue 7 years ago • 0 comments

When calling azureListStorageBlobs(azureActiveContext = NULL, storageAccount = "accountname", container = "containername", storageKey = "storagekey") I get back the following error: Error: Provide a valid azureActiveContext. See createAzureContext().

When stepping through the function, I can see that the data is being returned by the API call.

Here is the traceback:

> traceback()
4: stop(assertError(attr(res, "msg")))
3: assert_that(is.azureActiveContext(x))
2: updateAzureActiveContext(azureActiveContext, storageAccount = storageAccount, 
       storageKey = storageKey)
1: azureListStorageBlobs(azureActiveContext = NULL, storageAccount = "accountname", 
       container = "containername", storageKey = "storagekey")

and here is the session info:

> sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] AzureSMR_0.2.6

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.11     lubridate_1.6.0  XML_3.98-1.9     withr_1.0.2      digest_0.6.12    assertthat_0.2.0 mime_0.5         R6_2.2.1        
 [9] xtable_1.8-2     jsonlite_1.5     magrittr_1.5     httr_1.2.1       stringi_1.1.5    curl_2.4         miniUI_0.1.1     DT_0.2          
[17] devtools_1.12.0  tools_3.3.3      stringr_1.2.0    htmlwidgets_0.8  shiny_1.0.3      httpuv_1.3.3     base64enc_0.1-3  memoise_1.1.0   
[25] htmltools_0.3.5 

davefrancis avatar Jul 19 '17 18:07 davefrancis