uvicorn Questions
4
Solved
I have a small, test FastAPI web application that is serving a simple HTML page that requires a css style sheet located in the static folder. It is installed on a Linode server (Ubuntu 20.04 LTS), ...
6
i'm trying to debug an application (a web api) that use FastAPI (uvicorn)
I'm also using poetry and set the projev virtual environment in vscode.
i read this tutorial to setup uvicorn and this one...
Cayuga asked 13/2, 2020 at 9:58
11
Solved
I tried installing uvicorn on the system via pip3 which worked, however i am unable to run the same from the command line. Any pointers as to how to resolve this?
Requirement already satisfied: uv...
Grouse asked 25/11, 2019 at 5:47
5
Solved
When I run my FastAPI server using uvicorn:
uvicorn main:app --host 0.0.0.0 --port 8000 --log-level info
The log I get after running the server:
INFO: Started server process [405098]
INFO: Waiting...
4
I'm trying to Dockerize my FastApi app, but it crashes with this error right after I run the command:
docker-compose -f local.yml up -d
Can anyone help me, please?
Dockerfile:
FROM python:3.6.11-a...
Longdrawn asked 13/5, 2022 at 22:11
2
I have an application running in Kubernetes in google cloud. The application is written in python using fastapi. Logs from that application are visible via google cloud logging, however their "...
Delirium asked 11/7, 2022 at 9:4
4
Solved
Is it somehow possible to exclude certain part of the code when reloading the scrip with --reload flag?
uvicorn main:app --reload
Use case: I have a model which takes a lot of time loading so I wa...
15
Solved
I tried to run FastAPI using uvicorn webserver but it throws an error.
I run this command,
uvicorn api:app --reload --host 0.0.0.0
but there is an error in the terminal.
Uvicorn running on http://...
1
I'm testing Django asgi performance using two very simple views.
I'm running gunicorn and uvicorn in such a manner:
gunicorn core.wsgi --workers=1 --threads=1 --access-logfile=- core.wsgi:applicati...
2
I'm currently starting up the server with the following Uvicorn command:
main:app --host 0.0.0.0 --port 8003 --access-log
And I would like to add an extra argument --foo such that it works as argp...
Brena asked 29/11, 2022 at 17:1
3
Solved
I am trying to run a "local" web app on Google Colab using FastAPI / Uvicorn like some of the Flask app sample code I've seen but cannot get it to work. Has anyone been able to do this? A...
Frolic asked 10/9, 2020 at 16:5
4
Solved
1
I have a simple Uvicorn application (built with FastAPI). In development, uvicorn server:app --reload. The --reload paramter means two threads will be started, one with the server, one to monitor f...
3
Solved
I built a docker container with Django, Uvicorn, Nginx and Redis, and am using django-channels but when I run this it says it cannot connect to the websocket and this is seen in the browser console...
6
I have a fastapi project built by poetry. I want to run the application with a scripts section in pyproject.tom like below:
poetry run start
What is inside double quotes in the section?
[tool.poet...
Rental asked 9/9, 2020 at 10:17
2
I have a python web application written using FastAPI (running via uvicorn). In my app I'm using the standard logging module which uses TimedRotatingFileHandler. Since I'm logging into a file I'm c...
4
Solved
When we call an endpoint and a redirect occurs due to a missing trailing slash. As you can see in the image below, when a request is made to https://.../notifications, the FastAPI server responds w...
3
Solved
I migrated an application in Flask served by waitress to FastAPI served by uvicorn, but I can't force the links (generated by url_for inside the index.html template) to use HTTPS instead of HTTP.
W...
6
Solved
I am trying to run a service that uses simple transformers Roberta model to do classification. the inferencing script/function itself is working as expected when tested. when i include that with fa...
Rego asked 30/12, 2020 at 10:46
3
Solved
I've tried everything:
@Starlette:
routes = [
Mount("/static/", StaticFiles(directory=parent+fs+"decoration"+fs+"static"), name="static"),
Route(....),
Ro...
2
Solved
New to FastAPI and uvicorn, but I'm wondering why when I run my "hello world" service by starting it using uvicorn from the command line, it works fine, but when using the "uvicorn.r...
Seng asked 22/9, 2020 at 23:38
4
Solved
I bought a MAC and I use this system for the first time, I also recently started using python.
I have a python project with a requirement.txt file which I opened with PyCharm which also contains a ...
Camboose asked 31/5, 2020 at 16:8
2
I'm trying to understand the interaction between the "backlog" flag, and the "limit-concurrency" flag of uvicorn. From the documentation(https://www.uvicorn.org/settings/)
Backl...
6
Solved
Is there a way to kill uvicorn cleanly?
I.e., I can type ^C at it, if it is running in the foreground on a terminal. This causes the uvivorn process to die and all of the worker processes to be cl...
Sacks asked 27/2, 2020 at 0:1
2
Solved
I want to run FastAPI server using Uvicorn from A different Python file.
uvicornmodule/main.py
import uvicorn
import webbrowser
from fastapi import FastAPI
from fastapi.responses import FileRespons...
Necromancy asked 30/9, 2022 at 12:24
1 Next >
© 2022 - 2025 — McMap. All rights reserved.