I'm trying to turn a previously working synchronous usage of the Zeep library into the Async version of this. On a request to the WSDL, the transport will always return a 404.
The following is the sync implementation and is working as intended.
session = Session()
session.auth = HTTPBasicAuth(username, password)
transport = Transport(session=session)
return Client(config_url, transport=transport)
However, when I change this to an async implementation (using httpx) it will return a Transport Error. The only message in this transport error is 401
.
http_client = httpx.Client()
http_client.auth = (username, password)
http_client.verify = True
transport = AsyncTransport(session=http_client)
return AsyncClient(config_url, transport=transport)
Am I using async Zeep correctly? According to the docs it should work like this
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…