7,376 questions
-3 votes
0 answers
36 views
ClientSession for mcp sse_client throws httpx.ReadTimeout after session has been initialized [closed]
We are implementing a FastAPI client that uses an external sse server (http://localhost:9000/sse). As client implementation we have the follwing piece of code: async with sse_client("http://...
0 votes
0 answers
43 views
DuckDB connection.execute from fast api code changes &( to amp;( in a read_xlsx query [closed]
I am using a fast api code and just reading an excel file. The file is read as query=Describe SELECT * FROM read_xlsx({file_path},sheet='SpecialChar test&()@#$%^&()+{}'). However, this is ...
-1 votes
0 answers
21 views
FastAPI text-classification API returns 42 while deploying
I had a chance to deploy a simple text-classification model using FastAPI and exposing a /predict endpoint that should accept a text input. But, every time I send a POST request with a string body the ...
0 votes
0 answers
24 views
Speed up LangGraph REACT + RAG.(Multi-Agent Chatbot)
I’m trying to reduce latency in a LangGraph-powered chatbot that uses 14 REACT-style agents. The RAG layer pulls external knowledge from a vector DB. The issue: The REACT reasoning loop triggers ...
-3 votes
0 answers
65 views
FastAPI Performance Enhancement with Snowflake [closed]
I am developing a FastAPI application which will be deployed on EKS. Purpose of this application: the API should get input in the requests, application will extract the filter and sort and pagination ...
0 votes
0 answers
31 views
FastAPI WebSocket + Kafka: Only the last connected client receives messages [closed]
I'm building a real-time dashboard using FastAPI WebSockets + Kafka. Everything works perfectly for a single user, but when multiple users connect, only the most recently connected user receives ...
-1 votes
0 answers
76 views
Can a React (Vite) SPA prevent a component from being included in the client bundle until after backend authentication? [closed]
I have a React (Vite) frontend and a FastAPI backend. I want to protect /dashboard so that the Dashboard.jsx component is not downloaded by the browser unless the user is authenticated. In a normal ...
-3 votes
0 answers
143 views
OpenAI API Key Being Leaked Even Though It’s Stored Securely on Server . Need Help Diagnosing [closed]
I’m facing a serious issue and need help identifying the cause. My application setup is: Backend: Python FastAPI Frontend: Next.js Auth: JWT (Bearer token) Hosting: Nginx on a Linux server OpenAI ...
Best practices
0 votes
1 replies
24 views
Similar approach for allowed_host ip whitelist filtering in django, but in fastapi
I want to know the best practice for IP whitelist filtering in FastAPI. I'm used to writing Django APIs, but now I need to get the work done using FastAPI. Anyways, the ALLOWED_HOSTS feature in django ...
1 vote
0 answers
72 views
Issue with sqlAdmin under https domain and path
Let me start from middle. I have been play around for a long time with these three part: nginx which handles the path Fastapi server sqlAdmin The url https://example.com/gem/admin must be passed to ...
-3 votes
0 answers
35 views
Previous Twilio/ElevenLabs calls are being re-initiated when starting a new batch. Is this a state accumulation issue?
I am building an automated bulk calling system using Python (Async), MongoDB, and the ElevenLabs Conversational AI integration with Twilio (client.conversational_ai.twilio.outbound_call). I am running ...
1 vote
0 answers
56 views
How to delete a persistent chromadb collection
I want to delete a persistent chromadb collection after 12 hours, I am currently saving the time the collection was created in mongodb and then check it against current time, if it it is 12 hours old ...
0 votes
0 answers
32 views
Keycloak Middleware Issue: Empty preferred_username in get_user Object
Keycloak Middleware Issue: Empty preferred_username in get_user Object I'm using fastapi_keycloak_middleware to secure my FastAPI app with Keycloak. I'm having trouble mapping the preferred_username ...
-1 votes
0 answers
111 views
A wrapper route to simulate a FastAPI request [duplicate]
My goal is to have a special route which receives name and payload for any other route and then (after doing some unpacking and decoding) call the target route which I prefer to go through HTTP ...
Best practices
0 votes
5 replies
205 views
What is the ideal production-grade infrastructure to deploy a Python FastAPI service for computing option Greeks (e.g., Black–Scholes)?
I am building a python service to compute Greek values using python, but I have never worked on python, and I would appreciate advice from the experienced python devs as it would help me a lot. FLOW ...