Project

General

Profile

Bug #65261

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

Added by Sentry Io 15 days ago. Updated 14 days ago.

Status:
Fermé
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
14 May 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

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'):

Related issues

Related to BiJoe - Development #64294: autoriser django-jsonfield 1.4Solution déployée17 Apr 2022

Actions

Associated revisions

Revision 4a44e63b (diff)
Added by Frédéric Péters 14 days ago

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

History

#1

Updated by Frédéric Péters 15 days ago

  • Project changed from Suivi des traces to BiJoe
  • Subject changed from AttributeError: 'str' object has no attribute 'get' to 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

Updated by Frédéric Péters 15 days ago

#3

Updated by Frédéric Péters 14 days ago

  • Status changed from Nouveau to Fermé

Intégré dans la branche de #64294.

Also available in: Atom PDF