ewsterrenburg / python-otrs

Pythonic interface to OTRS SOAP API
GNU General Public License v3.0
47 stars 27 forks source link

Invalid Webservice Name but returning SessionID #38

Closed mike-mitchell closed 4 years ago

mike-mitchell commented 5 years ago

I am getting the following error: "BadStatusLine Exception when trying to reach https://cert2.corpnet.pl/otrs/nph-genericinterface.pl/Webservice/test. Are you using the correct webservice name?"

But in the webservice debugger, there is a successful connection and the service is returning the correct session id.

"""<?xml version="1.0" encoding="UTF-8"?>v0TKmhy5G8wwF0DLKDmCfk3xBL0ZTkrK</soap:Body></soap:Envelope>"""

ewsterrenburg commented 4 years ago

@mike-mitchell Whatever the underlying reason, your server is passing back something that Python's urllib2 does not understand (wrong statuscode, wrong headers, ...?).

I included the message regarding the webservice name as a hint (making a mistake in this name was the main reason I was getting this BadStatusLine error)