<?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 How to resolve this error: splunkjs.ProxyHttp is not a constructor? in Installation</title>
    <link>https://community.splunk.com/t5/Installation/How-to-resolve-this-error-splunkjs-ProxyHttp-is-not-a/m-p/621535#M12102</link>
    <description>&lt;P&gt;Hi, I am trying to use splunk sdk javascript and I have searched online for this but came up with no answers. I have followed the tutorial in splunk for setting up the sdk and trying to log in with&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var service = new splunkjs.Service&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;however this gives me the error of a web instance is required.&lt;/P&gt;
&lt;P&gt;I found a solution to this is to add&lt;/P&gt;
&lt;PRE&gt;var http = new splunkjs.ProxyHttp("/proxy")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;but this gives me the error&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;splunkjs.ProxyHttp is not a constructor&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;why is this happening?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 12:08:48 GMT</pubDate>
    <dc:creator>kalok9990</dc:creator>
    <dc:date>2022-11-21T12:08:48Z</dc:date>
    <item>
      <title>How to resolve this error: splunkjs.ProxyHttp is not a constructor?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-resolve-this-error-splunkjs-ProxyHttp-is-not-a/m-p/621535#M12102</link>
      <description>&lt;P&gt;Hi, I am trying to use splunk sdk javascript and I have searched online for this but came up with no answers. I have followed the tutorial in splunk for setting up the sdk and trying to log in with&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var service = new splunkjs.Service&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;however this gives me the error of a web instance is required.&lt;/P&gt;
&lt;P&gt;I found a solution to this is to add&lt;/P&gt;
&lt;PRE&gt;var http = new splunkjs.ProxyHttp("/proxy")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;but this gives me the error&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;splunkjs.ProxyHttp is not a constructor&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;why is this happening?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:08:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-resolve-this-error-splunkjs-ProxyHttp-is-not-a/m-p/621535#M12102</guid>
      <dc:creator>kalok9990</dc:creator>
      <dc:date>2022-11-21T12:08:48Z</dc:date>
    </item>
  </channel>
</rss>

