flavors / django-graphiql-debug-toolbar

Django Debug Toolbar for GraphiQL IDE and Graphene
https://pypi.python.org/pypi/django-graphiql-debug-toolbar
MIT License
72 stars 24 forks source link

AttributeError: 'NoneType' object has no attribute 'enabled_panels' #25

Open andyi95 opened 1 year ago

andyi95 commented 1 year ago

Running Django 3.2 with Nuxt, most of SSR Axios requests are producing this error

[2023-02-16 14:37:27,122] Internal Server Error: /graphql/
Traceback (most recent call last):
  File "C:\dev\proj\backend\venv\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
    response = get_response(request)
  File "C:\dev\proj\backend\venv\lib\site-packages\graphiql_debug_toolbar\middleware.py", line 91, in __call__
    payload = get_payload(request, response, toolbar)
  File "C:\dev\proj\backend\venv\lib\site-packages\graphiql_debug_toolbar\middleware.py", line 28, in get_payload
    for panel in reversed(toolbar.enabled_panels):
AttributeError: 'NoneType' object has no attribute 'enabled_panels'