sanic icon indicating copy to clipboard operation
sanic copied to clipboard

Accelerate your web app development | Build fast. Run fast.

Results 179 sanic issues
Sort by recently updated
recently updated
newest added

**Describe the bug** A manual integration test of a Rasa HTTP API endpoint was failing with this traceback: ``` [1] [ERROR] Exception occurred while handling uri: 'http://rasa-worker:5005/model/train?force=true&save_to_default_model_directory=true&callback_url=http://rasa-x:5002/api/projects/default/models/jobs/7/result?token%3Drasaxtoken&token=rasatoken' Traceback (most recent...

**Describe the bug** The `_app_registry` keeps hold of any app created by Sanic, even those stopped. **Code snippet** Adding the following code resolve the issue: ``` def stop(self): """ This...

**Is your feature request related to a problem? Please describe.** When creating a websocket server I'd like to use `async for` to iterate over the incoming messages from a connection....

help wanted
intermediate
feature request

**Is your feature request related to a problem? Please describe.** I would like to be able to disable RESPONSE_TIMEOUT so I can have long requests running until completion. **Describe the...

Apply fix #2463 to Sanic 21.12LTS version for python 3.7 users.

release-needed

## TLDR Remove all Sanic reliance upon `ctx` values in the `routing` module. ## Rationale There are several locations throughout Sanic where the developer is provided with a `ctx` object...

necessary
breaking

A previous [PR](https://github.com/sanic-org/sanic/pull/2447) provides `cache-control` HTTP header to `file` function in Sanic, but the best practice is to also implement the etag and the file validator. **Correct me if I...

enhancement
intermediate

While handling a request with a streaming response, the eof is sent in the finally block. This usually works well but when Sanic is TERMed or INTed, those streams are...

needs investigation
stale

**Describe the bug** Unable to delete a cookie set created with a non-default (`/`) path. **Code snippet** With this cookie ` response.cookie['token'] = "abcd" response.cookie['token']["path"] = "/api" ` the subsequent...

needs investigation
stale

See #2220 In v21.9, a new `WebsocketClosed` exception was added. While you can to do the following: ```python @app.websocker("/") async def handler(request, ws): try: ... except asyncio.CancelledError: print("connection closed") ```...

intermediate
feature request
stale