Projet

Général

Profil

Bug #76078

datasource: get_structured_items, erreur sur ds de type jsonvalue (TypeError: the JSON object must be str, bytes or bytearray, not NoneType)

Ajouté par Sentry Io il y a environ un an. Mis à jour il y a environ un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
31 mars 2023
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

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

TypeError: the JSON object must be str, bytes or bytearray, not NoneType
(14 additional frame(s) were not displayed)
...
  File "wcs/fields.py", line 2329, in perform_more_widget_changes
    items = data_sources.get_items(self.data_source, include_disabled=self.display_disabled_items)
  File "wcs/data_sources.py", line 238, in get_items
    structured_items = get_structured_items(data_source, mode=mode, include_disabled=include_disabled)
  File "wcs/data_sources.py", line 384, in get_structured_items
    items = _get_structured_items(data_source, mode=mode, raise_on_error=raise_on_error)
  File "wcs/data_sources.py", line 417, in _get_structured_items
    value = json.loads(data_source.get('value'))
  File "__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '

Révisions associées

Révision 6d355739 (diff)
Ajouté par Lauréline Guérin il y a environ un an

datasource: fix empty jsonvalue (#76078)

Historique

#1

Mis à jour par Lauréline Guérin il y a environ un an

  • Projet changé de Suivi des traces à w.c.s.

la datasource ne contient que:

{type: 'jsonvalue'}

#2

Mis à jour par Robot Gitea il y a environ un an

  • Statut changé de Nouveau à Solution proposée
  • Assigné à mis à Lauréline Guérin

Lauréline Guérin (lguerin) a ouvert une pull request sur Gitea concernant cette demande :

#3

Mis à jour par Robot Gitea il y a environ un an

  • Statut changé de Solution proposée à Solution validée

Frédéric Péters (fpeters) a approuvé une pull request sur Gitea concernant cette demande :

#4

Mis à jour par Robot Gitea il y a environ un an

  • Statut changé de Solution validée à Résolu (à déployer)

Lauréline Guérin (lguerin) a mergé une pull request sur Gitea concernant cette demande :

#5

Mis à jour par Transition automatique il y a environ un an

  • Statut changé de Résolu (à déployer) à Solution déployée
#6

Mis à jour par Transition automatique il y a 11 mois

Automatic expiration

Formats disponibles : Atom PDF