Questions tagged [fastapi]
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.
fastapi
7,089
questions
0
votes
0
answers
16
views
SimpleDirectoryReader() function seems not to support the Folder or Directory option
I am building a chatbot using FastAPI and Llamaindex tools. When I tried to generate the embeddings of the documents in the ./data directory, the system processed for a long time and raised an error ...
0
votes
1
answer
13
views
Cloud run FastAPI container shuts down and won't restart
In my GCP logs:
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [1]
Which is fine, serverless computing, ...
0
votes
0
answers
28
views
SSL routines::legacy sigalg disallowed or unsupported] (-1) (SQLDriverConnect)')
I´m trying to run a FastAPI connected to SQL Server on a Docker container, but I´m getting this error when I execute the query.
Error executing: (pyodbc.OperationalError) ('08001', '[08001] [Microsoft]...
-2
votes
0
answers
26
views
While running fastapi im getting syntax error [closed]
Outout when program ran
I tried searching eveywhere but im unable to find its solution .
i had written another code earlier but the output was same ,so i copied the code from fastapi site and tried ...
-1
votes
1
answer
27
views
403 Forbidden Error with Device APIs for fiscalDayOpened, and other API Parameter
I am working with an API that handles fiscal days and other device-related data. While public APIs are functioning correctly, I am encountering a 403 Forbidden error when making requests to specific ...
-2
votes
3
answers
35
views
how to run fastapi with a specific python interpreter on linux
I'm (trying to) run FastAPI on a linux container that has multiple versions of python. When I do fastapi run, I want fastapi to run using a particular python interpreter. (e.g. I want it to use the ...
-1
votes
1
answer
26
views
How to store jwt token in Chrome local storage for a chrome extension? [duplicate]
I have written a chrome extension login.html that acts as popup on the screen. It has an email and password form and a sign in button.
I have a login.js that has an event listener to check when the '...
1
vote
0
answers
66
views
How to link existing Azure function to static web app using Terraform and FastAPI?
I am trying to link an existing Azure function to a static web app using Terraform and FastAPI. Provisioning and deployment in devops works fine, but the URL is not working properly.
When I request ...
0
votes
1
answer
29
views
How to relay and stream HTTP response chunks directly using httpx and FastAPI? [duplicate]
I'm working on a relay handler using httpx and FastAPI to stream HTTP response chunks directly from an upstream server to a client. The goal is to send each chunk of the streamed response directly as ...
0
votes
0
answers
11
views
werkzeug.routing.exceptions.WebsocketMismatch
I have setuupped server for twilio, where a user will call a twilio number and we can able to capture the stream.but i am getting a error regarding websocket mismatch.
I am unable to figure it out how ...
0
votes
1
answer
35
views
sqlalchemy.exc.InvalidRequestError
I get this error and I don't understand how to solve it. I get this error when I running FastApi using uvicorn. Want to note to exploit the error of cyclic model imports, I used TYPE_CHEKING.
...
-1
votes
0
answers
15
views
My celery worker returns pending all the time even though it finishes it job
I got an fastapi and calling my tasks here:
@app.post("/crawl_corporates")
async def start_crawl():
try:
task_result = initialize_task.delay()
return {"message&...
-1
votes
0
answers
22
views
How to switch between a mock and a real implementation of some software system in FastAPI test code
I am writing a FastAPI application which provides a REST interface for some software system.
I have written two implementations of this software system using a Strategy Pattern.
To illustrate by way ...
0
votes
0
answers
26
views
How to handle external dependencies like datetime.now() in FastAPI tests?
I have some existing FastAPI tests which no longer pass, because some internal server logic has changed such that there is now a dependency on a value returned by datetime.now().
This is an external ...
-1
votes
1
answer
63
views
FastAPI Insert Performance: 1-2 ms Per Insert - Is This Normal?
I’m building a scalable FastAPI application with the goal of handling more than 10,000 requests per second (RPS). My application is quite complex. However, I’ve identified a significant bottleneck in ...