Status: Open
Status: Answered
Status: Closed
Status: Duplicate

Starting with REST API

0
Posted Jun 10 by Jeff Wogan.

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.

1 Answer

0
BEST ANSWER: As chosen by the author.

Hi Jeff,

This topic may be of help, as it deals with Content Server authentication.

You may also want to read the AppWorks Authentication article.

Regards,

Werner


 You have subscribed and will receive email notifications of updates to this topic. To unsubscribe, uncheck the checkbox.

Statistics

Related categories

Related tags

Your answer

To leave an answer, please sign in.