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

CS UI - getting Started - 404 error

0
Posted Jul 02 by Vivek Khurana.

I am conducting a proof of concept for Open Text Content Server UI widgets.
Here are the steps I performed

  1. Created a Vanilla Sandbox with 2015-06 cumulative patch
  2. Installed CSUI 10.0.1
  3. Created an html page ( attached) with the sample code provided in documentation

I am getting a 404 error. I am hoping you can help here

————————-HTML———————–
!DOCTYPE html>
<html>

<head>

&lt;!-- 1. Include the framework code. --&gt;
&lt;script src=&quot;http://amrndhw3855/img/csui/csui.js&quot;&gt;&lt;/script&gt;
&lt;!-- 2. Include the framework visual styling. --&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://amrndhw3855/img/csui/csui.css&quot;&gt;

&lt;style&gt;
/* Recommended page preparation by the jQuery UI developers. */
body {
    font-size: 11px;
}
&lt;/style&gt;

&lt;!-- 3. Perform the page initialization code. --&gt;
&lt;script&gt;
  // Ensure the framework initialization.
  csui.onReady( function() {

    // Create the server connector for the widgets.
    var connector = new csui.util.Connector( {
          connection: {
            url: &quot;http://amrndhw3855.amer.pfizer.com/otcs/cs/api/v1&quot;,
            supportPath: &quot;/img/&quot;,
               credentials: {
username: 'Admin',
password: 'livelink'
          }}
        } ),
    // Create the container browsing widget.
        browser = new csui.widget.FolderBrowserWidget( {
          connector: connector,
          placeholder: &quot;#folderBrowser&quot;
        } );
    // Display the container browsing widget.
    browser.show();

  });
&lt;/script&gt;

</head>

<body>

&lt;!-- 3. Provide the widget placeholder on the page. --&gt;
&lt;div id=&quot;folderBrowser&quot;&gt;&lt;/div&gt;

</body>

</html>


————ERROR———————
he module csui/lib/domReady was loaded from ./csui/lib/domReady.js.
csui.js:47 The module csui/lib/jquery was loaded from ./csui/lib/jquery.js.
csui.js:47 The module csui/lib/underscore.string was loaded from ./csui/lib/underscore.string.js.
csui.js:47 The module csui/lib/underscore was loaded from ./csui/lib/underscore.js.
csui.js:47 The module csui/lib/log4javascript was loaded from ./csui/lib/log4javascript.js.
http://amrndhw3855/img/csui/nls/en/lang.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://amrndhw3855/img/csui/nls/en-us/lang.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://amrndhw3855.amer.pfizer.com/otcs/cs/api/v1/volumes/141 Failed to load resource: the server responded with a status of 404 (Not Found)
http://amrndhw3855.amer.pfizer.com/otcs/cs/api/v1/volumes/141/nodes?limit=25&page=1&sort=asc_name&expand=node&expand=user Failed to load resource: the server responded with a status of 404 (Not Found)
2csui.js:23 WRN Not Found

(404)

Thank You
Vivek Khurana

3 Answers

0
BEST ANSWER: As chosen by the author.

The API base URL is &lt;CS CGI URL&gt;/api/vi. Do you access the server at http://amrndhw3855.amer.pfizer.com/otcs/cs?


0
BEST ANSWER: As chosen by the author.

Hello,

How this can be resolved? I am getting similar when I am using CreateObjectWidget.

--
&quot;NetworkError: 404 Not Found - https://csserver/img/csui/nls/en/lang.js&quot;
&quot;NetworkError: 404 Not Found - https://csserver/img/csui/nls/en-us/lang.js&quot;
--

I checked support path and there is no nls folder. It seems some scripts are referring to wrong path.

Thanks.


0
BEST ANSWER: As chosen by the author.

Errors from /img/csui/nls/en/lang.js and https://csserver/img/csui/nls/en-us/lang.js can be ignored. The English localization is compiled into csui.js.

The other 404 errors from above could be wrong connection parameters in the FolderBrowserWidget constructor.


 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.