Rlabkey "Moved Temporarily" troubles

LabKey Support Forum (Inactive)
Rlabkey "Moved Temporarily" troubles michael_stover  2012-03-08 11:43
Status: Closed
 
We are using Rlabkey to get data from the server, using the Export -> Scripts function. We have two statisticians doing this. It works for one, doesn't for the other. As far as I can tell, they have the same code on their machines - R version 2.14, Java 6 update 31. Copy and paste the export script, and on one machine, it works, on the other we get a 401 "Moved Temporarily" problem, which is often caused by http client code that is not following redirects.

Any ideas what the difference is between these two machines and how we can fix it?
 
 
jeckels responded:  2012-03-12 13:21
Hi Michael,

Do both machines have comparable saved credentials in their .netrc or _netrc files? Perhaps this is related to permissions and/or authentication.

https://www.labkey.org/wiki/home/Documentation/page.view?name=rAPI

Is the script just making a single call to labkey.selectRows(), or is it performing other requests?

Have you checked the access logs for the web server? It might provide useful information about differences between the original request URL, or possibly what the redirect target is, assuming the machine where it's working is successfully following a redirect.

Thanks,
Josh