Skip to content

Instantly share code, notes, and snippets.

@casesolved-co-uk
Created January 25, 2025 21:19
Show Gist options
  • Save casesolved-co-uk/d4df1415c29eafa28414265a9d24650d to your computer and use it in GitHub Desktop.
Save casesolved-co-uk/d4df1415c29eafa28414265a9d24650d to your computer and use it in GitHub Desktop.
Werkzeug problem
# python
@local_manager.middleware
@Request.application
def application(request: Request):
# gunicorn error
Traceback (most recent call last):
File "/home/rich/v14/env/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 134, in handle
self.handle_request(listener, req, client, addr)
File "/home/rich/v14/env/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 177, in handle_request
respiter = self.wsgi(environ, resp.start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rich/v14/env/lib/python3.11/site-packages/werkzeug/local.py", line 235, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rich/v14/env/lib/python3.11/site-packages/werkzeug/wrappers/request.py", line 196, in application
return resp(*args[-2:])
^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment