title: Error while access Service now API through python
body: <p>I am new to service now API access through python, below code I wrote but its failing with error. the same API URL if I access through internet explorer(<a href="https://myinstance.service-now.com/api/now/table/incident" rel="nofollow noreferrer">https://myinstance.service-now.com/api/now/table/incident</a>) I am getting some result. but through Python code its throwing error.</p>
  
  <p>Can some one view my code and help me if any issues or share me the solution to read the service now API through python code.</p>
  
  <pre><code>import pysnow
  # Configure authentication settings. Instance can be 'michmed', 'ummedtest', or 'ummeddev'
  auth = {'instance': 'myinstance', 'username': 'username', 'password': 'XXXXXXX'}
  # Connect to the ServiceNow instance
  s = pysnow.Client(instance=auth['instance'], user=auth['username'], password=auth['password'])
  # Fetch incident INC0012555, then print it.
  r = s.query(table='incident', query={'number': 'INC0646025'})
  print(r.get_one(fields=[]))
  </code></pre>
  
  <p>Error:</p>
  
  <p>"C:\Program Files\Python37\python.exe" connectto_servicenow.py</p>
  
  <p>Traceback (most recent call last):</p>
  
  <p>File "C:\Program Files\Python37\lib\site-packages\urllib3\connection.py", line 159, in _new_conn</p>
  
  <p>(self._dns_host, self.port), self.timeout, **extra_kw)</p>
  
  <p>File "C:\Program Files\Python37\lib\site-packages\urllib3\util\connection.py", line 57, in create_connection</p>
  
  <p>for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):</p>
  
  <p>File "C:\Program Files\Python37\lib\socket.py", line 748, in getaddrinfo</p>
  
  <p>for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
  socket.gaierror: [Errno 11001] getaddrinfo failed</p>