Development #53594
TypeError: Object of type builtin_function_or_method is not JSON serializable
Début:
30 avril 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/44840/
TypeError: Object of type builtin_function_or_method is not JSON serializable (14 additional frame(s) were not displayed) ... 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 "passerelle/utils/jsonresponse.py", line 47, in default return super(JSONEncoder, self).default(o) File "django/core/serializers/json.py", line 124, in default return super(DjangoJSONEncoder, self).default(o) File "json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} '
Fichiers
Demandes liées
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a presque 3 ans
- Projet changé de Suivi des traces à Passerelle
Mis à jour par Benjamin Dauvergne il y a presque 3 ans
- Fichier 0001-utils-return-JSON-for-exceptions-during-JSON-seriali.patch 0001-utils-return-JSON-for-exceptions-during-JSON-seriali.patch ajouté
- Tracker changé de Bug à Development
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Nicolas Roche il y a presque 3 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Benjamin Dauvergne il y a presque 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 52a932316b37d51055be8399fa4a97ef5f9d70f4 Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Fri Apr 30 12:33:10 2021 +0200 utils: return JSON for exceptions during JSON serialization (#53594)
Mis à jour par Frédéric Péters il y a presque 3 ans
(cet automatisme dans la suppression des branches empêche de voir dans quel état c'était pour jenkins, sur quoi c'était basé, en tout cas là c'est cassé).
Mis à jour par Frédéric Péters il y a presque 3 ans
- Lié à Bug #53697: échec de test_esirius.test_pre_request[xxx] ajouté
Mis à jour par Frédéric Péters il y a presque 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
utils: return JSON for exceptions during JSON serialization (#53594)