<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: R Analytics : Error &amp;quot;Invalid top level api: /ocpu&amp;quot; in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307879#M36795</link>
    <description>&lt;P&gt;Hi Boris,&lt;BR /&gt;
Glad it works, feel free to post as many questions as you like. Would you mind accepting the answer so other people can see this is solved?&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
Gijs&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2017 18:12:54 GMT</pubDate>
    <dc:creator>gwobben</dc:creator>
    <dc:date>2017-12-07T18:12:54Z</dc:date>
    <item>
      <title>R Analytics : Error "Invalid top level api: /ocpu"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307874#M36790</link>
      <description>&lt;P&gt;After R Analytic deployment and configuration when I tried to run a simple script I received this error message " Invalid top level api: /ocpu" (in output window) . I already checked R and opencpu on my RHEL 6 and its look ok&lt;BR /&gt;
I would appreciate if you can provide any feedback if you already experienced this kind of issue.&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Boris,&lt;/P&gt;

&lt;P&gt;When I tried to run simple script by  using R Analytic GUI str(dataset); print(dataset) I got error message in output windows above data preview "Invalid top Level api: /ocpu". I already checked R on my RHEL 6 and it looks Ok. I also checked opencpu by curl -L -v &lt;A href="http://myserver/ocpu/library"&gt;http://myserver/ocpu/library&lt;/A&gt; and by checking http:/myserver/ocpu/test. All components look Ok. Please, can you let me know if this kind of error message was part of your initial configuration.&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Boris&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 20:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307874#M36790</guid>
      <dc:creator>bgdalevich</dc:creator>
      <dc:date>2017-11-29T20:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: R Analytics : Error "Invalid top level api: /ocpu"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307875#M36791</link>
      <description>&lt;P&gt;Hi Boris,&lt;/P&gt;

&lt;P&gt;According to the OCPU code, this error occurs when an invalid endpoint is called (which means the url doesn't exist). &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;res$notfound(message=paste("Invalid top level api: /", reqhead, sep=""))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Source: &lt;A href="https://github.com/opencpu/opencpu/blob/master/R/httpget.R"&gt;https://github.com/opencpu/opencpu/blob/master/R/httpget.R&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;My guess is that you included "/ocpu" in your configuration? That would result in a url like this: http://[your server]:[your port]/ocpu/ocpu.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 09:28:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307875#M36791</guid>
      <dc:creator>gwobben</dc:creator>
      <dc:date>2017-11-30T09:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: R Analytics : Error "Invalid top level api: /ocpu"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307876#M36792</link>
      <description>&lt;P&gt;Hi Gijs,&lt;BR /&gt;
I tried to modify url as you said by applying baseurl = &lt;A href="http://mycomputer:8004/ocpu/ocpu"&gt;http://mycomputer:8004/ocpu/ocpu&lt;/A&gt; entry under&lt;BR /&gt;
/opt/splunk/etc/apps/ita_r/localrsetup.conf and it did not help. Of course I reloaded deployment to make it active. I also tried to browse IE by using &lt;A href="http://mycomputer:8004/ocpu/ocpu"&gt;http://mycomputer:8004/ocpu/ocpu&lt;/A&gt; and it does not work too, the same time I can get opencpu initial page (HTTP request option) by using original reference &lt;A href="http://mycomputer:8004/ocpu"&gt;http://mycomputer:8004/ocpu&lt;/A&gt;. May I ask you to provide another check methods that can confirm connectivity between your app and opencpu that is located on another server.&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Boris. P.S. I tried full DNS and shot comp names , still same result&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 16:25:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307876#M36792</guid>
      <dc:creator>bgdalevich</dc:creator>
      <dc:date>2017-11-30T16:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: R Analytics : Error "Invalid top level api: /ocpu"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307877#M36793</link>
      <description>&lt;P&gt;I think you misunderstood. Try the otherway around: &lt;A href="http://mycomputer:8004"&gt;http://mycomputer:8004&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 10:49:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307877#M36793</guid>
      <dc:creator>gwobben</dc:creator>
      <dc:date>2017-12-06T10:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: R Analytics : Error "Invalid top level api: /ocpu"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307878#M36794</link>
      <description>&lt;P&gt;I made this change and error message is gone, thank you.&lt;BR /&gt;
I am planning to open new case because still can not see correct output and would appreciate if you can review it.&lt;BR /&gt;
Thank you again,&lt;BR /&gt;
Boris,I made this change  and error message is gone. Thank you,&lt;BR /&gt;
Boris&lt;BR /&gt;
P.S.&lt;BR /&gt;
I am planning to open another case because  can not confirm correct output and would appreciate if you can review it.&lt;BR /&gt;
Thank you again&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:37:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307878#M36794</guid>
      <dc:creator>bgdalevich</dc:creator>
      <dc:date>2017-12-07T15:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: R Analytics : Error "Invalid top level api: /ocpu"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307879#M36795</link>
      <description>&lt;P&gt;Hi Boris,&lt;BR /&gt;
Glad it works, feel free to post as many questions as you like. Would you mind accepting the answer so other people can see this is solved?&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
Gijs&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 18:12:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307879#M36795</guid>
      <dc:creator>gwobben</dc:creator>
      <dc:date>2017-12-07T18:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: R Analytics : Error "Invalid top level api: /ocpu"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307880#M36796</link>
      <description>&lt;P&gt;Thank you again,&lt;BR /&gt;
Boris,&lt;BR /&gt;
P.S,&lt;BR /&gt;
I just submitted another one and would appreciate if you can check it.&lt;BR /&gt;
Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 18:19:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/R-Analytics-Error-quot-Invalid-top-level-api-ocpu-quot/m-p/307880#M36796</guid>
      <dc:creator>bgdalevich</dc:creator>
      <dc:date>2017-12-07T18:19:28Z</dc:date>
    </item>
  </channel>
</rss>

