I'm beginning to work with Content Server's REST API and am hitting an "Internal error" coming back from CS. CS 10.5 has been installed on top of a Win2008 R1 SP1 / IIS7.5 / Tomcat 7.0.42.
I can log into CS from a browser, however if I use the following AJAX call:
//var url = 'http://<server>/OTCS105/cs.exe/api/vi/auth';
var url = 'http://<server>/livelink/llisapi.dll/api/v1/auth';
var credentials = { userName: "<username>", password: "<password>" };
$.support.cors = true;
$.ajax({
url:url,
type:"POST",
crossDomain: true,
data:credentials,
dataType:"json",
contentType: "application/json",
success:function(res){
console.log(JSON.stringify(res));
},
error:function(res){
console.log("Bad thing happend! " + res.statusText);
}
});
I see this message come back through Fiddler:
"The page cannot be displayed because an internal server error has occurred."
I've tried both /livelink/llisapi.dll and /OTCS105/cs.exe. Both allow me to manually login. Both return the same error in the AJAX call. I don't see any indication of what's causing the issue in either the IIS or Tomcat logs.