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
I am using Sanic v23.12.1, and when I start the server on my mac, I use developer mode -dev error. The sanic server:app --dev error is IndexError: list assignment index out of range. However, I used sanic server:app --debug --reload to start.
Code snippet
from sanic import Sanic
from sanic.response import text
works (for me) as a workaround until the check if httpx is available in cli/console.py is fixed. It tries to delete element 3 from a 3 element array (0..2)(variable_descriptions) before logging that httpx is not available.
Perhaps that's just an off by one and it should be del variable_descriptions[2]?
Is there an existing issue for this?
Describe the bug
I am using Sanic v23.12.1, and when I start the server on my mac, I use developer mode -dev error. The sanic server:app --dev error is IndexError: list assignment index out of range. However, I used sanic server:app --debug --reload to start.
Code snippet
from sanic import Sanic
from sanic.response import text
app = Sanic("NMTTranslateApp")
@app.get("/")
async def hello_world(request):
return text("Hello, world!")
Expected Behavior
No response
How do you run Sanic?
Sanic CLI
Operating System
MacOS
Sanic Version
v23.12.1
Additional context
No response
The text was updated successfully, but these errors were encountered: