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

**Is your feature request related to a problem? Please describe your use case.** Just spent a good amount of time trying to figure why injections were not working on certain...

enhancement

Closes #2520 Co-authored-by: Adam Hopkins Co-authored-by: Zhiwei Liang

release-needed

**Describe the bug** When trying to run an integration test with sanic-testing and sanic-extentions, the test fails with the following exception: ``` .venv/lib/python3.10/site-packages/httpx/_client.py:1842: in post return await self.request( .venv/lib/python3.10/site-packages/sanic_testing/testing.py:364: in...

**Describe the bug** Sanic used to work behind uvicorn (ASGI). Now I can't get it to work **Code snippet** ```python # test_app.py from sanic import Sanic, response app = Sanic(name="test")...

bug

This PR aims to: - introduce an API to control middleware ordering - performance boost ```python @app.on_request(priority=99) async def high_priority(request): ... ```

on hold

_NOTE: When I say "Sanic" I mean Sanic Server. This PR is inapplicable to ASGI mode._ ## Background The long overdue refactor of Sanic multiprocessing... This PR intends to redo...

Adds three properties to `Request` object: - `is_safe` - `is_idempotent` - `is_cacheable`

Currently, there is no way to distinguish between the following: **SCENARIO A: Something in the handler raises a `CancelledError`** ```python @app.get("/") async def handler(request: Request): raise CancelledError ``` **SCENARIO B:...