Projet

Général

Profil

Development #76903

Mis à jour par Benjamin Dauvergne il y a environ un an

Pour éviter d'avoir ça dans les traces.

https://sentry.entrouvert.org/entrouvert/publik/issues/109838/

<pre>
XMLSyntaxError: Space required after the Public Identifier, line 1, column 50 (<string>, line 1)
File "zeep/loader.py", line 50, in parse_xml
return fromstring(
File "defusedxml/lxml.py", line 145, in fromstring
rootelement = _etree.fromstring(text, parser, base_url=base_url)
File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1784, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1141, in lxml.etree._BaseParser._parseDoc
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError

XMLSyntaxError: Invalid XML content received (Space required after the Public Identifier, line 1, column 50)
File "zeep/wsdl/bindings/soap.py", line 204, in process_reply
doc = parse_xml(content, self.transport, settings=client.settings)
File "zeep/loader.py", line 58, in parse_xml
raise XMLSyntaxError(

TransportError: Server returned response (502) with invalid XML: Invalid XML content received (Space required after the Public Identifier, line 1, column 50).
Content: b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>502 Proxy Error</title>\n</head><body>\n<h1>Proxy Error</h1>\n<p>The proxy server received an invalid\r\nresponse from an upstream server.<br />\r\nThe proxy server could not handle the request<p>Reason: <strong>Error reading from remote server</strong></p></p>\n</body></html>\n'
File "passerelle/utils/jsonresponse.py", line 128, in api
resp = f(*args, **kwargs)
File "passerelle/views.py", line 568, in perform
result = self.endpoint(request, **params)
File "passerelle/contrib/dpark/models.py", line 478, in payment_info
payments = [pairing.get_payment_info() for pairing in pairings]
File "passerelle/contrib/dpark/models.py", line 478, in <listcomp>
payments = [pairing.get_payment_info() for pairing in pairings]
File "passerelle/contrib/dpark/models.py", line 626, in get_payment_info
reply = self.resource.call('PLS_RECUPAIEM', self.filenumber, self.lastname, self.firstnames)
File "passerelle/contrib/dpark/models.py", line 229, in call
reply = getattr(service, operation)(*args, **kwargs)
File "zeep/proxy.py", line 46, in __call__
return self._proxy._binding.send(
File "zeep/wsdl/bindings/soap.py", line 135, in send
return self.process_reply(client, operation_obj, response)
File "zeep/wsdl/bindings/soap.py", line 206, in process_reply
raise TransportError(
</pre>

Retour