我调查了其他人发布的相同错误消息。答案几乎相同,这是服务器和客户端时间不同步。
但是对于我来说,我的服务器和客户端时间是同步的。我能知道是什么/任何其他类型的错误都会导致这种问题吗?
from requests import Session
from requests.auth import HTTPBasicAuth
from requests.exceptions import ConnectionError
from zeep import Client
from zeep import Settings
from zeep.transports import Transport
import urllib3
classificationResultList = []
urllib3.disable_warnings()
settings = Settings(strict=False)
session = Session()
session.auth = HTTPBasicAuth('username', 'password')
session.verify = False
Client.settings = settings
try:
client = Client(wsdl='https://url.com', transport=Transport(session = session))
test = client.service.GetLogManagers()
except ConnectionError as ce:
print(ce)
if test is not None:
print('Service 1 complete')
if test is None:
print('Service 2 complete')
print(classificationResultList)