Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
118 views

I create simple app using (python 3.11, uvicorn 0.38.0, fastapi 0.120.2): import os import time import asyncio import uvicorn from fastapi import FastAPI from fastapi import BackgroundTasks app = ...
Yura Pazyn's user avatar
0 votes
0 answers
34 views

I’m hosting a FastAPI application on Azure App Service (Linux, Python 3.12). The deployment works, but the logs repeatedly show the following errors: chown: changing ownership of '/temp': Operation ...
Kaue Martins's user avatar
2 votes
1 answer
59 views

I’m working on a FastAPI service deployed with Uvicorn using multiple workers to handle voice communication with Twilio, and I’m running into a routing problem. Current architecture: A client sends a ...
Lucas Pacífico's user avatar
0 votes
0 answers
132 views

I have a test FastAPI application: from fastapi import FastAPI, Request from opentelemetry.exporter.otlp.proto.grpc import trace_exporter from opentelemetry.instrumentation.asgi import ...
Tom McLean's user avatar
  • 6,633
0 votes
0 answers
54 views

I'm trying to capture chatInteraction and chatFeedback from continue with below config details in config.yaml of continue plugin. But I see no response and no logs being printed during debug in ...
sridattas's user avatar
  • 509
0 votes
2 answers
95 views

I've got 2 separate issues with FastAPI. I'm going through a course and on the tagging part, my tags aren't showing in the docs. Additionally, for 1 endpoint that I provided status codes (default to ...
Mike Schmidt's user avatar
2 votes
0 answers
291 views

Update 2: The following results do not hold when installing Uvicorn using pip install uvicorn[standard] which installs Uvicorn with Cython-based dependencies (where possible) and other optional extras....
Dante's user avatar
  • 880
2 votes
0 answers
83 views

I've been building a WebSocket application and I opted for Python FastAPI + Uvicorn for server side. Having pretty much finished the app, I decided to pack the server into an .exe file. Even though I ...
Mateusz Woźniak's user avatar
0 votes
1 answer
534 views

I am trying to run a websocket from a server where it watches a file and broadcasts any changes to the file over the websocket. This is my code: import os import json import uvicorn import asyncio ...
Ananda's user avatar
  • 106
0 votes
0 answers
131 views

I have a very simple FastAPI server. from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"message": "Hello, World!"} @app.get("/...
Tey Kai Cong's user avatar
1 vote
1 answer
473 views

I am trying to enforce a global request timeout in my FastAPI application using a custom TimeoutMiddleware. The middleware is supposed to cancel any request that takes longer than the specified ...
Hassan's user avatar
  • 33
4 votes
0 answers
482 views

We observed an issue with our containerized Python FastAPI application, which we deploy using Gunicorn and Uvicorn on Kubernetes. In extremely rare cases (~1 in 100.000) a single request seem to be ...
fragant's user avatar
  • 364
3 votes
0 answers
156 views

I have a FastAPI application with multiple endpoints, and each endpoint uses certain memory intensive objects (ML models). This works fine when I only have one worker, but I am worried about memory ...
jdm's user avatar
  • 10.3k
0 votes
1 answer
991 views

I have an API built in FastAPI hosted with uvicorn. I also have a website build in next.js. My typical workflow is to run the API locally on the command line and it will be hosted on localhost:8000, ...
Clayton Stetz's user avatar
1 vote
1 answer
884 views

I have my code starting as such: if __name__ == "__main__": uvicorn.run( app, host="0.0.0.0", port=3001, # Desired port. ) I'm starting my ...
engineer-x's user avatar
  • 3,395
2 votes
0 answers
191 views

I have a FastAPI/Uvicorn/SQLAlchemy app that I'm trying to run in ECS. I have successfully run the app via docker compose, but when I try to deploy the container in ecs I get the following error: ...
Boris's user avatar
  • 906
1 vote
0 answers
181 views

The issue is when Twilio sends a POST request to the /incoming-call endpoint, my server is returning a 405 Method Not Allowed error. The error log also shows that the server is attempting to handle ...
Ken Voiceai's user avatar
1 vote
0 answers
170 views

I'm making an API based on the FastAPI docs (https://fastapi.tiangolo.com/tutorial/sql-databases/#install-sqlmodel). I have noticed this docs are kind of deprecated due to @app.on_event("startup&...
Benevos's user avatar
  • 334
0 votes
1 answer
324 views

When I try to execute the command uvicorn main:app --reloadfor start my local server, the VSCode terminal throws the error invalid command name 'main:app'. The code below imports a variable from the ...
RAFAEL HSL's user avatar
1 vote
1 answer
89 views

When Cloud Run runs a container image, the container fails differently than when I run it locally. I added this try/except in app/main.py to debug the divergent behaviors: print(f'cwd is {os.getcwd()}'...
harrolee's user avatar
  • 783
0 votes
0 answers
486 views

I’m implementing a WebSocket connection using FastAPI with Uvicorn as the server. The WebSocket works fine when tested through Postman, but disconnects after 60-70 seconds when accessed through web ...
Shivaditya kr's user avatar
0 votes
0 answers
154 views

I'm currently building an app that connects to an API server through a script. Here’s how I create posts by connecting to the API server: api_url = "http://localhost:8013/posts/" ...
xler's user avatar
  • 1
0 votes
1 answer
267 views

I am building an app. While deploying in Windows server I don't want the console opening. But when I try to do so in .pyw form it does noting run.pyw 1>stdout.txt 2>stderr.txt calls the ...
Veer Nagda's user avatar
0 votes
1 answer
604 views

I am new to computer networks and Docker, and I'm trying to deploy and run a small FastAPI app using Docker. The app works successfully when I run it locally with Uvicorn, but it fails to run when I ...
THANAWUT TIMPITAK's user avatar
0 votes
0 answers
65 views

I have a FastAPI backend that needs to load new deep learning models everyday to memory. Models loads for the first time when FastAPI starts or force reload. I have a class Predict and an endpoint to ...
8589934592's user avatar

1
2 3 4 5
13