Project

General

Profile

Bug #76078

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

Added by Sentry Io 2 months ago. Updated 2 months ago.

Status:
Fermé
Priority:
Normal
Target version:
-
Start date:
31 March 2023
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

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, '

History

#1

Updated by Lauréline Guérin 2 months ago

  • Project changed from Suivi des traces to w.c.s.

la datasource ne contient que:

{type: 'jsonvalue'}

#2

Updated by Robot Gitea 2 months ago

  • Status changed from Nouveau to Solution proposée
  • Assignee set to Lauréline Guérin

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

#3

Updated by Robot Gitea 2 months ago

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

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

#4

Updated by Robot Gitea 2 months ago

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

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

#5

Updated by Transition automatique 2 months ago

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

Updated by Transition automatique 6 days ago

Automatic expiration

Also available in: Atom PDF