HTTP request was unsuccessful. Status code = 401, Error message = Unauthorized

LabKey Support Forum (Inactive)
HTTP request was unsuccessful. Status code = 401, Error message = Unauthorized Jon (LabKey DevOps)  2017-10-23 13:38
Status: Closed
 
Hi Ali,

Assuming that you're accessing a local test instance of LabKey that is running on your laptop and using the address http://localhost:8080/labkey, can you do the following:

1. Tell us what operating system you're running.

2. Confirm how your netrc file is setup. If it set to work on your local instance and we assume it's http://localhost:8080/labkey, then the configuration should look like this:

machine localhost
login user@emailaddress.com
password thePasswordForTheLabKeyUserAbove


3. Send us your R code that you're using to access the Rlabkey library to your local instance of LabKey

More details on the netrc file is available here: https://www.labkey.org/Documentation/wiki-page.view?name=netrc

If #2 looks good, then it may be how you're accessing the local instance of LabKey via your R code that's the problem and examining your code will help.

Regards,

Jon