Development #76903
dpark: convert errors to APIError
Début:
23 avril 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
Pour éviter d'avoir ça dans les traces.
https://sentry.entrouvert.org/entrouvert/publik/issues/109838/
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(
Révisions associées
Historique
Mis à jour par Robot Gitea il y a 12 mois
- Statut changé de Nouveau à Solution proposée
Benjamin Dauvergne (bdauvergne) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/passerelle/pulls/228
- Titre : dpark: convert soap errors to APIError (#76903)
- Modifications : https://git.entrouvert.org/entrouvert/passerelle/pulls/228/files
Mis à jour par Robot Gitea il y a 12 mois
- Statut changé de Solution proposée à Solution validée
Nicolas Roche (nroche) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a 12 mois
- Statut changé de Solution validée à Résolu (à déployer)
Benjamin Dauvergne (bdauvergne) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/passerelle/pulls/228
- Titre : dpark: convert soap errors to APIError (#76903)
- Modifications : https://git.entrouvert.org/entrouvert/passerelle/pulls/228/files
Mis à jour par Transition automatique il y a 12 mois
- Statut changé de Résolu (à déployer) à Solution déployée
dpark: convert soap errors to APIError (#76903)