Rlabkey webdav access failing with 401 unauthorized

LabKey Support Forum
Rlabkey webdav access failing with 401 unauthorized chetc (LabKey Support)  2021-04-26 12:36
Status: Closed
 

Hello Marcel,

I apologize for the delay in between responses. We try to address our forums when we get a chance but it's been very busy lately.

Since you are the Site Admin that API key should work for grabbing files. I'm curious to know how you were passing in your API key in that R script? Did you add (below) to your script to pass in the key?

library(Rlabkey)
labkey.setDefaults(apiKey="apikey|apikeyapikeyapikeyapikeyapikey")

It thats not all of it above (in your first post), could you share your whole script with us? Be sure to obscure the APIKey and BaseURL.

Thanks,
Chet