Project

General

Profile

Development #53594

TypeError: Object of type builtin_function_or_method is not JSON serializable

Added by sentry io about 2 months ago. Updated about 1 month ago.

Status:
Solution déployée
Priority:
Normal
Target version:
-
Start date:
30 Apr 2021
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

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__} '

Files


Related issues

Related to Passerelle - Bug #53697: échec de test_esirius.test_pre_request[xxx]Solution déployée03 May 2021

Actions

Associated revisions

Revision 52a93231 (diff)
Added by Benjamin Dauvergne about 2 months ago

utils: return JSON for exceptions during JSON serialization (#53594)

History

#1

Updated by Lauréline Guerin about 2 months ago

  • Project changed from Suivi des traces to Passerelle
#2

Updated by Benjamin Dauvergne about 2 months ago

  • Assignee set to Benjamin Dauvergne
#3

Updated by Benjamin Dauvergne about 2 months ago

#4

Updated by Nicolas Roche about 2 months ago

  • Status changed from Solution proposée to Solution validée
#5

Updated by Benjamin Dauvergne about 2 months ago

  • Status changed from Solution validée to 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)
#6

Updated by Frédéric Péters about 2 months ago

(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é).

#7

Updated by Frédéric Péters about 2 months ago

  • Related to Bug #53697: échec de test_esirius.test_pre_request[xxx] added
#8

Updated by Frédéric Péters about 1 month ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF