sanic
sanic copied to clipboard
Accelerate your web app development | Build fast. Run fast.
1. You should not be able to register the same exception more than once, or at least not on the same App/Blueprint. 2. Handlers should only be fetched in relation...
Can background tasks set timed tasks? Just like crontab time expression
I have a simple Sanic app: **main.py** ```Python from sanic import Sanic from sanic.response import json from starlette.exceptions import ExceptionMiddleware app = Sanic('test') @app.route('/test') async def test(request): value = request.args.get('int')...
**Describe the bug** When migrating my app from Flask to Sanic,I encountered an issue when redirecting to a presigned s3 link ("Connection closed before full header was received") which does...
**Describe the bug** while running `sanic --dev server.app` occures an error: > `Error while finding module specification for '__main__' (ValueError: __main__.__spec__ is None)` **Code snippet** server.py ```py from sanic import...
**Describe the bug** When serving a static file named `a../b.txt` with `app.static()`, the Sanic request handler gives a 400 status code instead of 200. **Code snippet** First file is called...
`Jun 03 14:17:32 lpkqdqyyzu python3[10366]: INFO: Application startup complete. Jun 03 14:17:32 lpkqdqyyzu python3[10366]: INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit) Jun 03 14:17:50 lpkqdqyyzu python3[10366]: WARNING: Invalid...
**Describe the bug** If any View http-method is marked as stream all other method will me mark also. **Code snippet** ```python class MyView(BaseView): @stream async def post(): return await make_stream()...
**Describe the bug** If the server configuration includes the "unix" parameter to specify the path to a unix socket to open in the server, the socket is opened in the...
**Is your feature request related to a problem? Please describe.** I'm running Sanic behind an nginx reverse proxy, mounted to a subdirectory. I want `app.url_for(_external=True)` to return correct absolute URLs....