<?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: Unable to connect to the splunk with javascript sdk example in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70343#M986</link>
    <description>&lt;P&gt;My license is expired..I am working on free splunk this week. That can be the reason?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Dec 2012 18:44:13 GMT</pubDate>
    <dc:creator>disha</dc:creator>
    <dc:date>2012-12-24T18:44:13Z</dc:date>
    <item>
      <title>Unable to connect to the splunk with javascript sdk example</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70339#M982</link>
      <description>&lt;P&gt;Reference to the example &lt;A href="http://dev.splunk.com/view/SP-CAAAEC9"&gt;http://dev.splunk.com/view/SP-CAAAEC9&lt;/A&gt;&lt;BR /&gt;
I am running client side java script example.&lt;BR /&gt;
first i hvae started the server:&lt;/P&gt;

&lt;P&gt;node sdkdo runserver&lt;BR /&gt;
Running server on port: 6969 -- Hit CTRL+C to exit&lt;/P&gt;

&lt;P&gt;Then Saved this code to connect.html&lt;BR /&gt;
Placed the file in splunk-sdk-javascript/example/browser folder&lt;BR /&gt;
set the path location as &lt;BR /&gt;
&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/resources/jquery.min.js"&gt;&lt;/SCRIPT&gt;&lt;/P&gt;

&lt;H2&gt;&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../../client/splunk.js"&gt;&lt;/SCRIPT&gt;&lt;/H2&gt;

&lt;H2&gt;-&lt;/H2&gt;

&lt;P&gt;changed the login credentials as&lt;BR /&gt;
 var service = new splunkjs.Service(http, {&lt;BR /&gt;
            username: "admin",&lt;BR /&gt;
            password: "password",&lt;BR /&gt;
            scheme: "http",&lt;BR /&gt;
            host: "localhost",&lt;BR /&gt;
            port:"6969",&lt;BR /&gt;
            version:"5.0"&lt;BR /&gt;
        });&lt;/P&gt;

&lt;P&gt;When running this in browser as &lt;A href="http://localhost:6969/example/browser/connect.html"&gt;http://localhost:6969/example/browser/connect.html&lt;/A&gt;&lt;BR /&gt;
it says alert "Error listing apps". &lt;BR /&gt;
In console I can see&lt;BR /&gt;
&lt;A href="http://localhost:6969/proxy/services/auth/login?output_mode=json"&gt;http://localhost:6969/proxy/services/auth/login?output_mode=json&lt;/A&gt; 500 (Internal Server Error)&lt;/P&gt;

&lt;P&gt;If i just click to open connect.html the URL becomes file:///C:/splunk-sdk-javascript/examples/browser/connect.html gives same alert but in console it says:&lt;BR /&gt;
Failed to load resource: Resource failed to load file:///C:/proxy/services/auth/login?output_mode=json&lt;/P&gt;

&lt;P&gt;Please help what I am missing.&lt;BR /&gt;
Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 01:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70339#M982</guid>
      <dc:creator>disha</dc:creator>
      <dc:date>2012-12-21T01:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to the splunk with javascript sdk example</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70340#M983</link>
      <description>&lt;P&gt;Assuming it is default Splunk installation, the port that you will need to connect to is 8089. 6969 is where the http server, node is listening. &lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 03:27:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70340#M983</guid>
      <dc:creator>Neeraj_Luthra</dc:creator>
      <dc:date>2012-12-21T03:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to the splunk with javascript sdk example</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70341#M984</link>
      <description>&lt;P&gt;with port:"8089" again it is not running.. showing error on console as:&lt;BR /&gt;
POST &lt;A href="http://localhost:6969/proxy/services/auth/login?output_mode=json"&gt;http://localhost:6969/proxy/services/auth/login?output_mode=json&lt;/A&gt; 500 (Internal Server Error) jquery.min.js:4 &lt;BR /&gt;
Any Suggesstion?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 17:31:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70341#M984</guid>
      <dc:creator>disha</dc:creator>
      <dc:date>2012-12-21T17:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to the splunk with javascript sdk example</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70342#M985</link>
      <description>&lt;P&gt;What version of Splunk are you running?&lt;/P&gt;

&lt;P&gt;If you are running Splunk 4.x, you will also need the xml2json app which is shipped with the SDK. You will need to copy the folder to your Splunk apps directory (etc/apps/). Detailed instructions for this can be found at &lt;A href="http://dev.splunk.com/view/SP-CAAAEFN"&gt;http://dev.splunk.com/view/SP-CAAAEFN&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Dec 2012 04:15:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70342#M985</guid>
      <dc:creator>Neeraj_Luthra</dc:creator>
      <dc:date>2012-12-23T04:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to the splunk with javascript sdk example</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70343#M986</link>
      <description>&lt;P&gt;My license is expired..I am working on free splunk this week. That can be the reason?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2012 18:44:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70343#M986</guid>
      <dc:creator>disha</dc:creator>
      <dc:date>2012-12-24T18:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to the splunk with javascript sdk example</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70344#M987</link>
      <description>&lt;P&gt;As long as you are using the "admin" user, the license shouldn't matter. Did you copy the xml2json folder as mentioned in my previous comment?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2012 16:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70344#M987</guid>
      <dc:creator>Neeraj_Luthra</dc:creator>
      <dc:date>2012-12-25T16:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to the splunk with javascript sdk example</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70345#M988</link>
      <description>&lt;P&gt;In my case - using &lt;STRONG&gt;NodeJS v0.8.9&lt;/STRONG&gt; did it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;See: &lt;A href="http://splunk-base.splunk.com/answers/79378/splunk-502-javascript-sdk-server-error-500-examples-browsertests"&gt;http://splunk-base.splunk.com/answers/79378/splunk-502-javascript-sdk-server-error-500-examples-browsertests&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Greetz Robert&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 15:44:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70345#M988</guid>
      <dc:creator>Rocket66</dc:creator>
      <dc:date>2013-03-15T15:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to the splunk with javascript sdk example</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70346#M989</link>
      <description>&lt;P&gt;Please help. Every time I am getting error message as "Error Listing Apps".&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 14:16:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-connect-to-the-splunk-with-javascript-sdk-example/m-p/70346#M989</guid>
      <dc:creator>jitendra0101</dc:creator>
      <dc:date>2017-07-18T14:16:14Z</dc:date>
    </item>
  </channel>
</rss>

