suds-community / suds

Suds is a lightweight SOAP python client for consuming Web Services. A community fork of the jurko fork.
https://suds.readthedocs.io/
GNU Lesser General Public License v3.0
172 stars 54 forks source link

keyword argument error #91

Closed coolbombom closed 1 year ago

coolbombom commented 1 year ago

Hi

I receive following error:

Traceback (most recent call last):
  File "/home/prod/soaphandler/autoworker.py", line 84, in send
    resp = client.service.SendRequest(xmlstring)
  File "/home/prod/venv/lib/python3.10/site-packages/suds/client.py", line 586, in __call__
    return client.invoke(args, kwargs)
  File "/home/prod/venv/lib/python3.10/site-packages/suds/client.py", line 728, in invoke
    result = self.send(soapenv, timeout=timeout)
  File "/home/prod/venv/lib/python3.10/site-packages/suds/client.py", line 771, in send
    reply = self.options.transport.send(request)
  File "/home/prod/venv/lib/python3.10/site-packages/suds/transport/http.py", line 89, in send
    fp = self.u2open(u2request, timeout=request.timeout)
TypeError: HTTPSClientCertTransport.u2open() got an unexpected keyword argument 'timeout'

which makes no sense?

When i add a print(self.u2open.__code__.co_varnames) inside the self.options.transport.send function, just before the function call, i only receive ('self', 'u2request') as arguments, so it is almost like the timeout argument has disappeared?

if i fix the function call from fp = self.u2open(u2request, timeout=request.timeout) to fp = self.u2open(u2request) everything works fine?

any idea what is going on. Am i doing something wrong?

kind regards c_bb

coolbombom commented 1 year ago

Never mind.... i figured out what my issue was sorry.