<?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 Website monitoring app generating python error when using http proxy in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Website-monitoring-app-generating-python-error-when-using-http/m-p/141733#M12259</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I am getting the following error when attempting to use our corporate http proxy, i have tested this proxy from command line by exporting the http_proxy and https_proxy session variables and using curl and the authentication details are correct.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2014-02-07 08:32:15,352 ERROR An error occurred when attempting to communicate with the proxy
Traceback (most recent call last):
  File "/opt/splunk/shared/etc/apps/website_monitoring/bin/web_ping.py", line 255, in ping
    response, content = http.request(url.geturl(), 'GET')
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/__init__.py", line 1421, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/__init__.py", line 1171, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/__init__.py", line 1122, in _conn_request
    conn.connect()
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/__init__.py", line 887, in connect
    sock.connect((self.host, self.port))
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/socks.py", line 360, in connect
    raise GeneralProxyError((5, _generalerrors[5]))
GeneralProxyError: (5, 'bad input')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have the following in my inputs.conf (redacted where appropriate)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[web_ping://test]
host = www.cheese.com
interval = 1m
title = cheesetest
url = httpwww.cheese.com
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have had to remove the :// from the url line to post as apparently i don't have enough "Karma" to include external links &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I have the following in my website_monitoring.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
proxy_port = 8080
proxy_server = proxy.cheese.com
proxy_password = password
proxy_user = websitemonuser
proxy_type = http
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The proxy_type did not get added by the GUI, i added that manually after checking the default/website_monitoring.conf file, i have tried with this line and without.&lt;/P&gt;

&lt;P&gt;If i remove the proxy entries completely and attempt to connect to an internal URL that is accessible from my search head then everything functions as expected.&lt;/P&gt;

&lt;P&gt;Any Ideas or assistance?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Darren&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:49:40 GMT</pubDate>
    <dc:creator>darrend</dc:creator>
    <dc:date>2020-09-28T15:49:40Z</dc:date>
    <item>
      <title>Website monitoring app generating python error when using http proxy</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Website-monitoring-app-generating-python-error-when-using-http/m-p/141733#M12259</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I am getting the following error when attempting to use our corporate http proxy, i have tested this proxy from command line by exporting the http_proxy and https_proxy session variables and using curl and the authentication details are correct.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2014-02-07 08:32:15,352 ERROR An error occurred when attempting to communicate with the proxy
Traceback (most recent call last):
  File "/opt/splunk/shared/etc/apps/website_monitoring/bin/web_ping.py", line 255, in ping
    response, content = http.request(url.geturl(), 'GET')
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/__init__.py", line 1421, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/__init__.py", line 1171, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/__init__.py", line 1122, in _conn_request
    conn.connect()
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/__init__.py", line 887, in connect
    sock.connect((self.host, self.port))
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/socks.py", line 360, in connect
    raise GeneralProxyError((5, _generalerrors[5]))
GeneralProxyError: (5, 'bad input')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have the following in my inputs.conf (redacted where appropriate)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[web_ping://test]
host = www.cheese.com
interval = 1m
title = cheesetest
url = httpwww.cheese.com
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have had to remove the :// from the url line to post as apparently i don't have enough "Karma" to include external links &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I have the following in my website_monitoring.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
proxy_port = 8080
proxy_server = proxy.cheese.com
proxy_password = password
proxy_user = websitemonuser
proxy_type = http
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The proxy_type did not get added by the GUI, i added that manually after checking the default/website_monitoring.conf file, i have tried with this line and without.&lt;/P&gt;

&lt;P&gt;If i remove the proxy entries completely and attempt to connect to an internal URL that is accessible from my search head then everything functions as expected.&lt;/P&gt;

&lt;P&gt;Any Ideas or assistance?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Darren&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:49:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Website-monitoring-app-generating-python-error-when-using-http/m-p/141733#M12259</guid>
      <dc:creator>darrend</dc:creator>
      <dc:date>2020-09-28T15:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Website monitoring app generating python error when using http proxy</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Website-monitoring-app-generating-python-error-when-using-http/m-p/141734#M12260</link>
      <description>&lt;P&gt;This looks like a &lt;A href="https://code.google.com/p/httplib2/issues/detail?id=179"&gt;known bug&lt;/A&gt; in the Python HTTP libraries. I am looking into making a workaround (see &lt;A href="http://lukemurphey.net/issues/681"&gt;http://lukemurphey.net/issues/681&lt;/A&gt; for progress).&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 01:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Website-monitoring-app-generating-python-error-when-using-http/m-p/141734#M12260</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2014-02-11T01:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Website monitoring app generating python error when using http proxy</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Website-monitoring-app-generating-python-error-when-using-http/m-p/141735#M12261</link>
      <description>&lt;P&gt;Can you give me an example of the URL that you were trying to monitor and what version of Splunk you have installed? From what I can tell, this error appears when you use a proxy server and certain URLs. I haven't been able to reproduce this with any of the URLs I tried thus far.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 02:42:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Website-monitoring-app-generating-python-error-when-using-http/m-p/141735#M12261</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2014-02-11T02:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Website monitoring app generating python error when using http proxy</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Website-monitoring-app-generating-python-error-when-using-http/m-p/141736#M12262</link>
      <description>&lt;P&gt;Hi Luke&lt;/P&gt;

&lt;P&gt;Certainly.  I have just added the following&lt;/P&gt;

&lt;P&gt;http colon slash slash www dot cheese dot com&lt;/P&gt;

&lt;P&gt;It is generating the same error with that URL.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Darren&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 10:45:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Website-monitoring-app-generating-python-error-when-using-http/m-p/141736#M12262</guid>
      <dc:creator>darrend</dc:creator>
      <dc:date>2014-02-11T10:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Website monitoring app generating python error when using http proxy</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Website-monitoring-app-generating-python-error-when-using-http/m-p/141737#M12263</link>
      <description>&lt;P&gt;Hi Luke&lt;/P&gt;

&lt;P&gt;How are you getting on with this bug?  any closer to identifying the issue yet?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Darren&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 13:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Website-monitoring-app-generating-python-error-when-using-http/m-p/141737#M12263</guid>
      <dc:creator>darrend</dc:creator>
      <dc:date>2014-02-19T13:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Website monitoring app generating python error when using http proxy</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Website-monitoring-app-generating-python-error-when-using-http/m-p/141738#M12264</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;

&lt;P&gt;I am currently experiencing the same issue. i can monitor splunk locally but as soon as add a proxy it does not work. I also get the "GeneralProxyError: (5, 'bad input')" thingy.&lt;/P&gt;

&lt;P&gt;Thanks and regards,&lt;BR /&gt;
 Adam&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2015 10:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Website-monitoring-app-generating-python-error-when-using-http/m-p/141738#M12264</guid>
      <dc:creator>adamgiemza</dc:creator>
      <dc:date>2015-03-27T10:46:47Z</dc:date>
    </item>
  </channel>
</rss>

