python-five9 icon indicating copy to clipboard operation
python-five9 copied to clipboard

Invalid XML error

Open aliirz opened this issue 7 years ago • 1 comments

I keep getting this error when I try to call any of the methods on the client:

  File "app.py", line 6, in <module>
    print client.supervisor.getUserLimits()
  File "/Users/araza/pyfive9/env/lib/python2.7/site-packages/five9/five9.py", line 58, in supervisor
    supervisor,
  File "/Users/araza/pyfive9/env/lib/python2.7/site-packages/five9/five9.py", line 221, in __create_supervisor_session
    supervisor.setSessionParameters(session_params)
  File "/Users/araza/pyfive9/env/lib/python2.7/site-packages/zeep/proxy.py", line 42, in __call__
    self._op_name, args, kwargs)
  File "/Users/araza/pyfive9/env/lib/python2.7/site-packages/zeep/wsdl/bindings/soap.py", line 126, in send
    return self.process_reply(client, operation_obj, response)
  File "/Users/araza/pyfive9/env/lib/python2.7/site-packages/zeep/wsdl/bindings/soap.py", line 170, in process_reply
    content=response.content)
zeep.exceptions.TransportError: Server returned response (401) with invalid XML: Invalid XML content received (Opening and ending tag mismatch: HR line 1 and body, line 1, column 1038).
Content: '<html><head><title>JBoss Web/7.5.3.Final - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 401 - </h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u></u></p><p><b>JBWEB000069: description</b> <u>JBWEB000121: This request requires HTTP authentication.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.5.3.Final</h3></body></html>'

Any one had any luck using this?

aliirz avatar Jul 24 '18 20:07 aliirz

@aliirz In your case, I think you're not providing correct credentials, can you paste your code?

Walt-H avatar Jul 05 '19 15:07 Walt-H