All Questions
4,878
questions
-1
votes
0
answers
10
views
FastAPI,ResponseValidationError
I am learing Fast api and going with the tutorial,but stucked here although i have written the same code as his but i am getting the responseValidation error.
this is get post code:
Code of get post
...
0
votes
0
answers
5
views
Does Starlette SessionMiddleware store session data on the server or on the client?
I am developing a stateless FastAPI app. The authentication is handled via Google OAuth (openid email profile scope). I am using Authlib and it uses SessionMiddleware (request.session) to store ...
0
votes
1
answer
14
views
FastAPI add Tags to APIRouter
How do you look at such a solution?:
user_router = APIRouter(
prefix="/user", tags=["users"]
)
user_router.tags_metadata = [
{
"name": "users",
...
0
votes
0
answers
34
views
Unable to upload images to S3 using boto3
I am using fastapi to upload images to my s3 bucket. first i tried presigned url method to upload images from postman and it is working fine. But when i try to directly upload image(size ~7kb) from ...
0
votes
1
answer
32
views
is it possible for one put endpoint to have a param that have more than 1 type on fastapi, pydantic
so first of full, the goal of this question is to gain more knowledge about if it possible, and what is the pest practice.
there are 3 types of users
7, 6 are normal users
5,4 are publishers
3,2 are ...
-5
votes
1
answer
81
views
FastAPI 'State' object has no attribute 'implementation'
I'm getting error 'State' object has no attribute 'implementation' with FastAPI test code.
Here is all the relevant code. You can copy and paste each of these file contents to run a MWE.
# tests/...
0
votes
0
answers
17
views
The docs generated by fastapi are missing the correct interface
I built an application with Fastapi+MongoDB, the following code about it, when I tested it, I found that Fastapi's docs don't parse the send-code and verify-code interfaces, I searched for a lot of ...
0
votes
0
answers
57
views
How to ignore a certain argument in a field while serializing in pydantic?
What I am trying to achieve?
I want to filter books based on some criteria. Since the filtering logic is roughly equal to "compare value with column_in_db", I decided to create different ...
-3
votes
0
answers
38
views
Protect python FastAPI with Azure AD hosted in Azure Web APP [closed]
i want to protect my python api hosted in Azure web App using Azure AD and i have app registration detail available can anyone tell the code to verify the incoming token bearer from frontend angular ...
0
votes
0
answers
39
views
Postman throws error when accessing http://103.180.163.187:8000/ but gives a response for http://0.0.0.0:8000/
I am implementing FastAPI and Uvicorn for the first time. I have already integrated FastAPI with my python code. I am running it on a remote server. It contains one GET and one POST request. I ran it ...
1
vote
0
answers
35
views
How to Stream RTSP Video from IP Camera to HTML Video Element?
I have an IP camera that streams video using the RTSP protocol. My system needs to connect to this IP camera and stream the video to a web browser. Since most browsers don't natively support RTSP, I ...
1
vote
0
answers
21
views
S3 server simulation in FastAPI, Python
I want to implement S3 server using FastAPI and Python. This is my code for signature validation:
async def verify_signature(request: Request):
try:
authorization_header = request.headers.get(&...
0
votes
0
answers
18
views
Celery returns wrong info about current tasks in one worker
I have a bundle which contains Celery and RabbitMQ for tasks and FastApi app for web requests.
The celery app starts from command prompt with celery -A celery_app worker -l info -P gevent.
Rabbit is ...
0
votes
0
answers
51
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
28
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 ...