<?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: Splunk Add-on Builder Proxy Errors- Alert action works perfectly except when I enable proxy in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-Builder-Proxy-Errors-Alert-action-works-perfectly/m-p/604835#M77134</link>
    <description>&lt;P&gt;This was resolved by altering one line in Starcher's&lt;SPAN&gt;&amp;nbsp;class (line 266). Without this change, the script would error out when running through the SSL verification process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;proxies = {'http': proxy_string.format('http',credential_string,self.proxy_url,self.proxy_port), 'https': proxy_string.format('https',credential_string,self.proxy_url,self.proxy_port)}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;to:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;proxies = {'http': proxy_string.format('http',credential_string,self.proxy_url,self.proxy_port), 'https': proxy_string.format('http',credential_string,self.proxy_url,self.proxy_port)}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2022 18:15:22 GMT</pubDate>
    <dc:creator>jmartin_pro</dc:creator>
    <dc:date>2022-07-07T18:15:22Z</dc:date>
    <item>
      <title>Splunk Add-on Builder Proxy Errors- Alert action works perfectly except when I enable proxy</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-Builder-Proxy-Errors-Alert-action-works-perfectly/m-p/604632#M77119</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;This is my first time posting to Splunk Community. I've found a lot of value here and hope you all are doing well.&lt;/P&gt;
&lt;P&gt;I have an add-on built with the Splunk Add-on Builder (I believe version 4.1.0) that contains an alert action that packages up search results and sends them to a HEC input. I am utilizing George Starcher's Python class for sending events to HEC inputs (&lt;A href="https://github.com/georgestarcher/Splunk-Class-httpevent" target="_blank" rel="noopener"&gt;https://github.com/georgestarcher/Splunk-Class-httpevent&lt;/A&gt;). The alert action works perfectly except when I enable the proxy - then I am hit with the error message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Traceback (most recent call last):
  File "/opt/splunk/etc/apps/&amp;lt;appname&amp;gt;/bin/&amp;lt;appname&amp;gt;/splunk_http_event_collector.py", line 287, in _batchThread
    response = self.requests_retry_session().post(self.server_uri, data=payload, headers=headers, verify=self.SSL_verify,proxies=proxies)
  File "/opt/splunk/etc/apps/&amp;lt;appname&amp;gt;/bin/&amp;lt;appname&amp;gt;/aob_py3/requests/sessions.py", line 635, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
  File "/opt/splunk/etc/apps/&amp;lt;appname&amp;gt;/bin/&amp;lt;appname&amp;gt;/aob_py3/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/splunk/etc/apps/&amp;lt;appname&amp;gt;/bin/&amp;lt;appname&amp;gt;/aob_py3/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/opt/splunk/etc/apps/&amp;lt;appname&amp;gt;/bin/&amp;lt;appname&amp;gt;/aob_py3/requests/adapters.py", line 499, in send
    timeout=timeout,
  File "/opt/splunk/etc/apps/&amp;lt;appname&amp;gt;/bin/&amp;lt;appname&amp;gt;/aob_py3/urllib3/connectionpool.py", line 696, in urlopen
    self._prepare_proxy(conn)
  File "/opt/splunk/etc/apps/&amp;lt;appname&amp;gt;/bin/&amp;lt;appname&amp;gt;/aob_py3/urllib3/connectionpool.py", line 964, in _prepare_proxy
    conn.connect()
  File "/opt/splunk/etc/apps/&amp;lt;appname&amp;gt;/bin/&amp;lt;appname&amp;gt;/aob_py3/urllib3/connection.py", line 359, in connect
    conn = self._connect_tls_proxy(hostname, conn)
  File "/opt/splunk/etc/apps/&amp;lt;appname&amp;gt;/bin/&amp;lt;appname&amp;gt;/aob_py3/urllib3/connection.py", line 506, in _connect_tls_proxy
    ssl_context=ssl_context,
  File "/opt/splunk/etc/apps/&amp;lt;appname&amp;gt;/bin/&amp;lt;appname&amp;gt;/aob_py3/urllib3/util/ssl_.py", line 453, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
  File "/opt/splunk/etc/apps/&amp;lt;appname&amp;gt;/bin/&amp;lt;appname&amp;gt;/aob_py3/urllib3/util/ssl_.py", line 495, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock)
  File "/opt/splunk/lib/python3.7/ssl.py", line 423, in wrap_socket
    session=session
  File "/opt/splunk/lib/python3.7/ssl.py", line 827, in _create
    raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Has anyone come across similar behavior? I am trying a variety of different things but this has quickly gone over my head. Any help or direction would be greatly appreciated. Please let me know what information I can provide.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 14:37:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-Builder-Proxy-Errors-Alert-action-works-perfectly/m-p/604632#M77119</guid>
      <dc:creator>jmartin_pro</dc:creator>
      <dc:date>2022-07-07T14:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on Builder Proxy Errors- Alert action works perfectly except when I enable proxy</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-Builder-Proxy-Errors-Alert-action-works-perfectly/m-p/604835#M77134</link>
      <description>&lt;P&gt;This was resolved by altering one line in Starcher's&lt;SPAN&gt;&amp;nbsp;class (line 266). Without this change, the script would error out when running through the SSL verification process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;proxies = {'http': proxy_string.format('http',credential_string,self.proxy_url,self.proxy_port), 'https': proxy_string.format('https',credential_string,self.proxy_url,self.proxy_port)}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;to:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;proxies = {'http': proxy_string.format('http',credential_string,self.proxy_url,self.proxy_port), 'https': proxy_string.format('http',credential_string,self.proxy_url,self.proxy_port)}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 18:15:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-Builder-Proxy-Errors-Alert-action-works-perfectly/m-p/604835#M77134</guid>
      <dc:creator>jmartin_pro</dc:creator>
      <dc:date>2022-07-07T18:15:22Z</dc:date>
    </item>
  </channel>
</rss>

