[在尝试使用json连接到servicenow时,我面临以下错误。我要运行的代码是:
from servicenow import ServiceNow
from servicenow import Connection
conn = Connection.Auth(username='admin.main', password='Rusty123#', instance='abcd.servicenow.com')
inc = inc.fetch_one({'number': 'INCV0346936'})
print inc
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='abcd.servicenow.com.service-now.com', port=443): Max retries exceeded with url: //incident.do?JSON=&sysparm_action=getRecords&sysparm_query=number%3DINCV0346936 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000002183FE7D388>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
此python代码曾经工作过一次吗?如果确实如此,此后发生了什么变化?是否启动了ServiceNow实例?