<?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 Splunk SDK for Python: Why the error Timeout error [Errno 60] Operation timed out? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-for-Python-Why-the-error-Timeout-error-Errno-60/m-p/630945#M10936</link>
    <description>&lt;P&gt;Hi there everyone, I'm a fresh beginner at Splunk SDK, was exploring stuff and tried to add a user using the library and the below code and it ended up with the error at the bottom.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;import splunklib.client as client&lt;BR /&gt;&lt;BR /&gt;HOST = HOST&lt;BR /&gt;PORT = 8089&lt;BR /&gt;BEARER_TOKEN =BEARER_TOKEN&lt;BR /&gt;&lt;BR /&gt;# Create a Service instance and log in &lt;BR /&gt;try:&lt;BR /&gt;service = client.connect(&lt;BR /&gt;host=HOST,&lt;BR /&gt;port=PORT,&lt;BR /&gt;splunkToken=BEARER_TOKEN,&lt;BR /&gt;verify=False&lt;BR /&gt;)&lt;BR /&gt;if service:&lt;BR /&gt;print("connected....)&lt;BR /&gt;&lt;BR /&gt;except Exception as e:&lt;BR /&gt;print(e)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;try:&lt;BR /&gt;service.users.create(&lt;BR /&gt;username="test123",&lt;BR /&gt;password="test321",&lt;BR /&gt;roles="admin"&lt;BR /&gt;) &lt;BR /&gt;except Exception as e:&lt;BR /&gt;print(f"and as it goeeees {e}")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class=""&gt;TimeoutError&lt;/SPAN&gt;: [Errno 60] Operation timed out&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;suggestions or guidance would be awesome if any&lt;BR /&gt;&lt;BR /&gt;Sincerely&lt;/P&gt;
&lt;P&gt;Haydar&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 17:05:03 GMT</pubDate>
    <dc:creator>Haydar</dc:creator>
    <dc:date>2023-02-15T17:05:03Z</dc:date>
    <item>
      <title>Splunk SDK for Python: Why the error Timeout error [Errno 60] Operation timed out?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-for-Python-Why-the-error-Timeout-error-Errno-60/m-p/630945#M10936</link>
      <description>&lt;P&gt;Hi there everyone, I'm a fresh beginner at Splunk SDK, was exploring stuff and tried to add a user using the library and the below code and it ended up with the error at the bottom.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;import splunklib.client as client&lt;BR /&gt;&lt;BR /&gt;HOST = HOST&lt;BR /&gt;PORT = 8089&lt;BR /&gt;BEARER_TOKEN =BEARER_TOKEN&lt;BR /&gt;&lt;BR /&gt;# Create a Service instance and log in &lt;BR /&gt;try:&lt;BR /&gt;service = client.connect(&lt;BR /&gt;host=HOST,&lt;BR /&gt;port=PORT,&lt;BR /&gt;splunkToken=BEARER_TOKEN,&lt;BR /&gt;verify=False&lt;BR /&gt;)&lt;BR /&gt;if service:&lt;BR /&gt;print("connected....)&lt;BR /&gt;&lt;BR /&gt;except Exception as e:&lt;BR /&gt;print(e)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;try:&lt;BR /&gt;service.users.create(&lt;BR /&gt;username="test123",&lt;BR /&gt;password="test321",&lt;BR /&gt;roles="admin"&lt;BR /&gt;) &lt;BR /&gt;except Exception as e:&lt;BR /&gt;print(f"and as it goeeees {e}")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class=""&gt;TimeoutError&lt;/SPAN&gt;: [Errno 60] Operation timed out&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;suggestions or guidance would be awesome if any&lt;BR /&gt;&lt;BR /&gt;Sincerely&lt;/P&gt;
&lt;P&gt;Haydar&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 17:05:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-for-Python-Why-the-error-Timeout-error-Errno-60/m-p/630945#M10936</guid>
      <dc:creator>Haydar</dc:creator>
      <dc:date>2023-02-15T17:05:03Z</dc:date>
    </item>
  </channel>
</rss>

