Skip to content

EEGAnnotationList not JSON serializable #119

@scott-huberty

Description

@scott-huberty

There is a silent failure when serving the QC dashboard:

  File "/usr/local/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/encoder.py", line 180, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type EEGAnnotationList is not JSON serializable

I think EEGAnnotationList.annotations is a pandas series where it should be a dictionary (see this thread). This is necessary because EEGAnnotationsList is wrapped in a dcc.Store component.

I spent the weekend in a battle to deploy the dashboard to a PAAS service (Heroku/Google Cloud/Azure) to no avail. After exhausting all other avenues, I have a hunch this is the underlying issue.

I expect that deploying to a PAAS service won't be possible until this is corrected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions