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
Describe the bug
I did set app.config.INJECTION_SIGNAL = "http.handler.before", but when the server start, there is a split second where the handler runs before the injection finish, and it will throw an error with missing param.
In a normal situation, this wouldn't be an issue, but when using auto scaling (like Google Cloud Run), the instance is spun up to serve the request, then the first request will always result in a 500 error.
Expected behavior
The handler will be called after the injection finish
Environment (please complete the following information):
OS: docker python-3.11-slim / MacOS
Versions:
sanic==23.3.0
sanic-ext==23.3.0
The text was updated successfully, but these errors were encountered:
Describe the bug
I did set
app.config.INJECTION_SIGNAL = "http.handler.before"
, but when the server start, there is a split second where the handler runs before the injection finish, and it will throw an error with missing param.In a normal situation, this wouldn't be an issue, but when using auto scaling (like Google Cloud Run), the instance is spun up to serve the request, then the first request will always result in a 500 error.
Expected behavior
The handler will be called after the injection finish
Environment (please complete the following information):
sanic==23.3.0
sanic-ext==23.3.0
The text was updated successfully, but these errors were encountered: