Bug #9773
appel webservice : enregistrement des erreurs quand il n'y a pas de données
Début:
26 janvier 2016
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
(par exemple sur un timeout)
Exception: type = '<type 'exceptions.TypeError'>', value = ''NoneType' object has no attribute '__getitem__'' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/wcs/wf/wscall.py", line 38, in __init__ 36 def __init__(self, summary, data): 37 self.summary = summary > 38 self.data = data[:10000] # beware of huge responses 39 40 def view(self): locals: self = <wcs.wf.wscall.JournalWsCallErrorPart instance at 0x3edc518> data = None summary = 'ConnectionError: error while fetching the page : The read operation timed out\n' File "/usr/lib/python2.7/dist-packages/wcs/wf/wscall.py", line 215, in action_on_error 213 get_publisher().notify_of_exception(exc_info, context='[WSCALL]') 214 if self.record_errors and formdata.evolution: > 215 formdata.evolution[-1].add_part(JournalWsCallErrorPart(summary, data)) 216 formdata.store() 217 if action == ':pass': locals: formdata = <Signalement-D-Anomalie-De-Collecte id:2547> summary = 'ConnectionError: error while fetching the page : The read operation timed out\n' self = <wcs.wf.wscall.WebserviceCallStatusItem object at 0x3684e90> action = ':stop' exc_info = (<class 'qommon.errors.ConnectionError'>, ConnectionError(), <traceback object at 0x3c67950>) data = None response = None
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 8 ans
- Fichier 0001-wscall-handle-saving-errors-missing-data-9773.patch 0001-wscall-handle-saving-errors-missing-data-9773.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a environ 8 ans
- Statut changé de En cours à Résolu (à déployer)
commit fe5be30df415994e53a48d3a7297f77cb1c58b9f Author: Frédéric Péters <fpeters@entrouvert.com> Date: Tue Jan 26 15:33:40 2016 +0100 wscall: handle saving errors missing data (#9773)
wscall: handle saving errors missing data (#9773)