Closed TaylorHere closed 6 months ago
Can I work on this issue?
Can I work on this issue?
If you want to, I suggest you first write a test that fails then fix the problem seeing that the test also then passes, and make a PR. Be sure to mention this issue number with the PR. Everyone is welcome to make PRs here, and be sure to ask (especially @ahopkins) if it turns out to be too complicated.
From the code you showed, this is not a bug. You are trying to access the multiplexer in the global scope, which will never exist.
You can only access it from inside some sort of server-level handler. In a listener, middleware, route handler, etc.
this is the same error message as what happens on the healthcheck endpoint in our application
Is there an existing issue for this?
Describe the bug
Code snippet
Expected Behavior
No response
How do you run Sanic?
Sanic CLI
Operating System
Linux
Sanic Version
Sanic 23.6.0; Routing 23.6.0
Additional context
No response