After upgrading to sanic==21.9.3 from sanic==21.3.4, Not a single api endpoint is working for me and all of them is giving me error on starting the. app.
[2021-12-02 17:17:30 +0530] [5901] [WARNING] You are using a deprecated error handler. The lookup method should accept two positional parameters: (exception, route_name: Optional[str]). Until you upgrade your ErrorHandler.lookup, Blueprint specific exceptions will not work properly. Beginning in v22.3, the legacy style lookup method will not work at all
and when making a call to any API, this error is popping up.
^[[B[2021-12-02 17:27:46 +0530] [5945] [ERROR] SPTK caught an error that should have been caught by Sanic response handler.
[2021-12-02 17:27:46 +0530] [5945] [ERROR] Could not find signal http.lifecycle.handle
[2021-12-02 17:27:46 +0530] [5945] [ERROR] Exception occurred while handling uri: 'http://localhost:8080/v1/api/users/ens_name_autocomplete'
Traceback (most recent call last):
File "/Users/sauravverma/Programs/ama.fans/py-server-backend/lib/python3.8/site-packages/sanic/signals.py", line 73, in get
group, param_basket = self.find_route(
File "", line 38, in find_route
sanic_routing.exceptions.NotFound: Not Found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/sauravverma/Programs/ama.fans/py-server-backend/lib/python3.8/site-packages/sanic/http.py", line 146, in http1
await self.protocol.request_handler(self.request)
File "/Users/sauravverma/Programs/ama.fans/py-server-backend/lib/python3.8/site-packages/sanic_plugin_toolkit/realm.py", line 550, in _handle_request_21_03
_ = await real_handle(request)
File "/Users/sauravverma/Programs/ama.fans/py-server-backend/lib/python3.8/site-packages/sanic/app.py", line 769, in handle_request
await self.dispatch(
File "/Users/sauravverma/Programs/ama.fans/py-server-backend/lib/python3.8/site-packages/sanic/signals.py", line 163, in dispatch
return await dispatch
File "/Users/sauravverma/Programs/ama.fans/py-server-backend/lib/python3.8/site-packages/sanic/signals.py", line 114, in _dispatch
raise e
File "/Users/sauravverma/Programs/ama.fans/py-server-backend/lib/python3.8/site-packages/sanic/signals.py", line 111, in _dispatch
group, handlers, params = self.get(event, condition=condition)
File "/Users/sauravverma/Programs/ama.fans/py-server-backend/lib/python3.8/site-packages/sanic/signals.py", line 86, in get
raise NotFound(message % tuple(terms))
sanic_routing.exceptions.NotFound: Could not find signal http.lifecycle.handle