Bug #76021
wscall: erreur de sérialisation dans call_webservice (TypeError: Object of type time is not JSON serializable)
Début:
30 mars 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/109377/
TypeError: Object of type time is not JSON serializable (13 additional frame(s) were not displayed) ... File "wcs/qommon/misc.py", line 602, in encode return super().encode(preprocess_struct_time(o)) File "json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "wcs/qommon/misc.py", line 643, in default return json.JSONEncoder.default(self, o) File "json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} '
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a environ un an
{ address: '{{ form_var_adresse }}', city: '{{ form_var_commune }}', date: '{{ form_var_creneau_date }}', email: '{{ form_var_courriel }}', payment_method: '{{ form_var_paiement }}', slot: '{{ form_var_creneau_datetime|time }}', <-- ici type: '{{ form_var_typeReparation }}', zip_code: '{{ form_var_postal }}' }
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Nouveau à En cours
- Assigné à mis à Frédéric Péters
Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/215
- Titre : WIP: misc: add support for serializing times to json (#76021)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/215/files
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution proposée à Solution validée
Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution validée à Résolu (à déployer)
Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/215
- Titre : misc: add support for serializing times to json (#76021)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/215/files
Mis à jour par Transition automatique il y a environ un an
- Statut changé de Résolu (à déployer) à Solution déployée
misc: add support for serializing times to json (#76021)