You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I'm not able to use the @api.background.task in the example. Stack trace is below, full app file information also available below - Python v 3.6.6
Serving on http://localhost:5000
ERROR:waitress:Exception when serving /
Traceback (most recent call last):
File "/Users/mp/.local/share/virtualenvs/resp_test-wtUUHlHQ/lib/python3.6/site-packages/waitress/channel.py", line 338, in service
task.service()
File "/Users/mp/.local/share/virtualenvs/resp_test-wtUUHlHQ/lib/python3.6/site-packages/waitress/task.py", line 169, in service
self.execute()
File "/Users/mp/.local/share/virtualenvs/resp_test-wtUUHlHQ/lib/python3.6/site-packages/waitress/task.py", line 399, in execute
app_iter = self.channel.server.application(env, start_response)
File "/Users/mp/.local/share/virtualenvs/resp_test-wtUUHlHQ/lib/python3.6/site-packages/responder/api.py", line 99, in __call__
return self.wsgi_app(environ, start_response)
File "/Users/mp/.local/share/virtualenvs/resp_test-wtUUHlHQ/lib/python3.6/site-packages/responder/api.py", line 93, in wsgi_app
return DispatcherMiddleware(main, apps)(environ, start_response)
File "/Users/mp/.local/share/virtualenvs/resp_test-wtUUHlHQ/lib/python3.6/site-packages/werkzeug/wsgi.py", line 826, in __call__
return app(environ, start_response)
File "/Users/mp/.local/share/virtualenvs/resp_test-wtUUHlHQ/lib/python3.6/site-packages/responder/api.py", line 86, in _wsgi_app
return self.whitenoise(environ, start_response)
File "/Users/mp/.local/share/virtualenvs/resp_test-wtUUHlHQ/lib/python3.6/site-packages/whitenoise/base.py", line 75, in __call__
return self.application(environ, start_response)
File "/Users/mp/.local/share/virtualenvs/resp_test-wtUUHlHQ/lib/python3.6/site-packages/responder/api.py", line 82, in __wsgi_app
resp = self._dispatch_request(req)
File "/Users/mp/.local/share/virtualenvs/resp_test-wtUUHlHQ/lib/python3.6/site-packages/responder/api.py", line 125, in _dispatch_request
self.routes[route].endpoint(req, resp, **params)
File "main_app.py", line 14, in hello
@api.background.task
AttributeError: 'API' object has no attribute 'background'
Currently I'm not able to use the
@api.background.task
in the example. Stack trace is below, full app file information also available below - Python v 3.6.6Full
main_app.py
file -The text was updated successfully, but these errors were encountered: