<?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: Why are we receiving asyncio.TimeoutError while setting up 'Splunk Add-on for Salesforce Streaming API'? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-we-receiving-asyncio-TimeoutError-while-setting-up/m-p/677463#M231663</link>
    <description>&lt;P&gt;I am on the same boat. Any update on above request&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 18:40:50 GMT</pubDate>
    <dc:creator>suresh401</dc:creator>
    <dc:date>2024-02-13T18:40:50Z</dc:date>
    <item>
      <title>Why are we receiving asyncio.TimeoutError while setting up 'Splunk Add-on for Salesforce Streaming API'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-we-receiving-asyncio-TimeoutError-while-setting-up/m-p/585171#M203852</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I am trying to onboard the streaming events from Salesforce into my Splunk and trying to use the&amp;nbsp;'&lt;A href="https://splunkbase.splunk.com/app/5689/" target="_blank" rel="noopener"&gt;Splunk Add-on for Salesforce Streaming API&lt;/A&gt;' for same.&lt;BR /&gt;I have an http proxy at instance level to allow the connect to the internet facing Salesforce Sandbox Instance.&lt;/P&gt;
&lt;P&gt;After setting up the required connection and inputs, the data is not getting onboarded. And I am getting following ERROR messages at&amp;nbsp;ta_sfdc_streaming_api_sfdc_streaming_api_events.log&lt;BR /&gt;&lt;BR /&gt;My Splunk Version : 8.1.5&lt;/P&gt;
&lt;P&gt;How to solve this?'&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;##################
ERROR pid=434886 tid=MainThread file=base_modinput.py:log_error:309 | Get error when collecting events.
Traceback (most recent call last):
File "/opt/splunk/etc/apps/TA-sfdc-streaming-api/bin/../lib/modinput_wrapper/base_modinput.py", line 128, in stream_events
self.collect_events(ew)
File "/opt/splunk/current/etc/apps/TA-sfdc-streaming-api/bin/sfdc_streaming_api_events.py", line 66, in collect_events
input_module.collect_events(self, ew)
File "/opt/splunk/etc/apps/TA-sfdc-streaming-api/bin/input_module_sfdc_streaming_api_events.py", line 26, in collect_events
loop.run_until_complete(task)
File "/opt/splunk/current/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
return future.result()
File "/opt/splunk/etc/apps/TA-sfdc-streaming-api/bin/input_module_sfdc_streaming_api_events.py", line 61, in connect_sfdc
async with sf_streaming_client as client:
File "/opt/splunk/etc/apps/TA-sfdc-streaming-api/bin/../lib/aiosfstream/exceptions.py", line 143, in async_wrapper
return await func(*args, **kwargs)
File "/opt/splunk/etc/apps/TA-sfdc-streaming-api/bin/../lib/aiosfstream/client.py", line 246, in __aenter__
return cast("Client", await super().__aenter__())
File "/opt/splunk/etc/apps/TA-sfdc-streaming-api/bin/../lib/aiocometd/client.py", line 432, in __aenter__
await self.open()
File "/opt/splunk/etc/apps/TA-sfdc-streaming-api/bin/../lib/aiosfstream/exceptions.py", line 143, in async_wrapper
return await func(*args, **kwargs)
File "/opt/splunk/etc/apps/TA-sfdc-streaming-api/bin/../lib/aiosfstream/client.py", line 143, in open
await authenticator.authenticate()
File "/opt/splunk/etc/apps/TA-sfdc-streaming-api/bin/../lib/aiosfstream/auth.py", line 100, in authenticate
status_code, response_data = await self._authenticate()
File "/opt/splunk/etc/apps/TA-sfdc-streaming-api/bin/../lib/aiosfstream/auth.py", line 187, in _authenticate
response = await session.post(self._token_url, data=data)
File "/opt/splunk/etc/apps/TA-sfdc-streaming-api/bin/../lib/aiohttp/client.py", line 619, in _request
break
File "/opt/splunk/etc/apps/TA-sfdc-streaming-api/bin/../lib/aiohttp/helpers.py", line 656, in __exit__
raise asyncio.TimeoutError from None
concurrent.futures._base.TimeoutError&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Feb 2022 05:44:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-we-receiving-asyncio-TimeoutError-while-setting-up/m-p/585171#M203852</guid>
      <dc:creator>harshal_chakran</dc:creator>
      <dc:date>2022-02-18T05:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we receiving asyncio.TimeoutError while setting up 'Splunk Add-on for Salesforce Streaming API'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-we-receiving-asyncio-TimeoutError-while-setting-up/m-p/677463#M231663</link>
      <description>&lt;P&gt;I am on the same boat. Any update on above request&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 18:40:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-we-receiving-asyncio-TimeoutError-while-setting-up/m-p/677463#M231663</guid>
      <dc:creator>suresh401</dc:creator>
      <dc:date>2024-02-13T18:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we receiving asyncio.TimeoutError while setting up 'Splunk Add-on for Salesforce Streaming API'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-we-receiving-asyncio-TimeoutError-while-setting-up/m-p/681125#M232773</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/195840"&gt;@harshal_chakran&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255221"&gt;@suresh401&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of our salesforce security guys found a workaround that involves modifying a few python scripts under the lib folder.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There are two methods, long polling and web sockets. Long polling was applicable to us so we just fixed that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Some information on the usage of proxy settings in aiohttp can be found here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.aiohttp.org/en/stable/client_advanced.html#proxy-support" target="_blank" rel="noopener"&gt;Advanced Client Usage — aiohttp 3.9.3 documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The fixes can be applied to the TA-sfdc-streaming-api pack and below is what we modified to successfully subscribe via a proxy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Modify /opt/splunk/etc/apps/TA-sfdc-streaming-api/lib/aiocometd/transports/long_polling.py&lt;/P&gt;&lt;P&gt;search for one instance of "session.post" and add&amp;nbsp; ,proxy="http://&amp;lt;proxyip&amp;gt;:&amp;lt;port&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="long_polling.png" style="width: 876px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29790i4BB31A849000D0B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="long_polling.png" alt="long_polling.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Modify /opt/splunk/etc/apps/TA-sfdc-streaming-api/lib/aiosfstream/auth.py&lt;/P&gt;&lt;P&gt;search for two instances of "session.post" and add ,proxy="http://&amp;lt;proxyip&amp;gt;:&amp;lt;port&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="auth.png" style="width: 895px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29791i13FDEF26458E4321/image-size/large?v=v2&amp;amp;px=999" role="button" title="auth.png" alt="auth.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 05:53:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-we-receiving-asyncio-TimeoutError-while-setting-up/m-p/681125#M232773</guid>
      <dc:creator>mik3y</dc:creator>
      <dc:date>2024-03-19T05:53:27Z</dc:date>
    </item>
  </channel>
</rss>

