Bug #76078
datasource: get_structured_items, erreur sur ds de type jsonvalue (TypeError: the JSON object must be str, bytes or bytearray, not NoneType)
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
Historique
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'}
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 :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/217
- Titre : datasource: fix empty jsonvalue (#76078)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/217/files
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 :
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 :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/217
- Titre : datasource: fix empty jsonvalue (#76078)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/217/files
Mis à jour par Transition automatique il y a environ un an
- Statut changé de Résolu (à déployer) à Solution déployée
datasource: fix empty jsonvalue (#76078)