Projet

Général

Profil

Bug #65261

AttributeError: 'str' object has no attribute 'get' (suite à montée vers debian 11)

Ajouté par Sentry Io il y a presque 2 ans. Mis à jour il y a presque 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
14 mai 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

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

AttributeError: 'str' object has no attribute 'get'
(8 additional frame(s) were not displayed)
...
  File "rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "bijoe/visualization/views.py", line 337, in get
    all_visualizations = Visualization.from_json(instance.parameters)
  File "bijoe/visualization/utils.py", line 108, in from_json
    cube = cls.get_cube(d)
  File "bijoe/visualization/utils.py", line 93, in get_cube
    if warehouse.slug and d.get('warehouse_slug'):

Demandes liées

Lié à BiJoe - Development #64294: autoriser django-jsonfield 1.4Fermé17 avril 2022

Actions

Révisions associées

Révision 4a44e63b (diff)
Ajouté par Frédéric Péters il y a presque 2 ans

general: ensure json columns are of jsonb type (#65261)

Historique

#1

Mis à jour par Frédéric Péters il y a presque 2 ans

  • Projet changé de Suivi des traces à BiJoe
  • Sujet changé de AttributeError: 'str' object has no attribute 'get' à AttributeError: 'str' object has no attribute 'get' (suite à montée vers debian 11)
d: '{"drilldown_y": "category", "drilldown_x": "", "cube": "all_formdata", "filters": {"category": [10, 9, 4, 12, 15, 1, 2]}, "measure": "avg_endpoint_delay", "warehouse": "demarches_nancy_test_entrouvert_org", "representation": "table", "loop": ""}'

Suite à la montée de version django-jsonfield 1.0.1-2 → 1.4.0-2 (?), il y a une chaine là où c'est un dictionnaie qui est attendu.

#2

Mis à jour par Frédéric Péters il y a presque 2 ans

#3

Mis à jour par Frédéric Péters il y a presque 2 ans

  • Statut changé de Nouveau à Fermé

Intégré dans la branche de #64294.

Formats disponibles : Atom PDF