finos/perspective

aiohttp handler: 'NoneType' object has no attribute 'prepare'

Closed this issue · 0 comments

Bug Report

Steps to Reproduce:

  1. Connect a browser to a distributed server running on perspective-python with AIOHTTP
  2. Refresh the browser

Expected Result:

Nothing happens

Actual Result:

AIOHTTP throws:

14:11:35 aiohttp ERRO Missing return statement on request handler
Traceback (most recent call last):
  File "/Users/steve/conda/envs/port/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 653, in finish_response
    prepare_meth = resp.prepare
                   ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'prepare'

Environment:

For Python

  • python interpreter version (Only CPython). - 3.12.7
  • package manager and version (conda/pip/*) - pip 24.2
    • Are you compiling from an sdist of wheel? - no
  • Platform and version (Jupyter/tornado/lib/*) - aiohttp - 3.10.10
  • OS - MacOS 13.7