Projet

Général

Profil

Bug #78235

as-tech: TypeError: Object of type bytes is not JSON serializable

Ajouté par Sentry Io il y a 11 mois. Mis à jour il y a 11 mois.

Statut:
Nouveau
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
07 juin 2023
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/111340/

APIError: AS-TECH response: 403 Forbidden
(3 additional frame(s) were not displayed)
...
  File "passerelle/apps/astech/models.py", line 269, in company
    company = self.call(
  File "passerelle/apps/astech/models.py", line 214, in call
    authorization = self.get_authorization()
  File "passerelle/apps/astech/models.py", line 196, in get_authorization
    connection = self.get_connections()['connection']
  File "passerelle/apps/astech/models.py", line 181, in get_connections
    connections = self.call_json('get', url)
  File "passerelle/apps/astech/models.py", line 163, in call_json
    raise APIError(

TypeError: Object of type bytes is not JSON serializable
(13 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 43, in default
    return super().default(o)
  File "django/core/serializers/json.py", line 105, in default
    return super().default(o)
  File "json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '

Historique

#1

Mis à jour par Serghei Mihai il y a 11 mois

  • Projet changé de Suivi des traces à Passerelle
  • Sujet changé de TypeError: Object of type bytes is not JSON serializable à as-tech: TypeError: Object of type bytes is not JSON serializable

Formats disponibles : Atom PDF