So I am trying to write simple function here, but everytime I run swagger I got above mentioned error. Here's my function: def authenticate_user(username: str,
I'm trying to test my database in my FastAPI app. from fastapi.testclient import TestClient from sqlalchemy import create_engine from sqlalchemy.orm import sess
I'm trying to add validation to my route in a fastapi server, followed the instructions here and managed to have added validation on my int path parameters like
I have read FastAPI's documentation about middlewares (specifically, the middleware tutorial, the CORS middleware section and the advanced middleware guide), bu
I have been working with server sent events to send out certain type of notifications to only certain clients. I am using the module called sse-starlette to try
I am using FastAPI to serve some ML models and I have a Streamlit basic UI using Python Requests module. One of my service is getting an image through a POST re
I have a simple REST api which is a books store created with FastAPI and mongo db as the backend (I have used Motor as the library instead of Pymongo). I have a
The fastAPI that I am working on does not return traceback whenever the request failed, instead, it returns 500 Internal Server Error with error : ERROR: ASG
This is my FastAPI(python) code, which returns a .ics file: @app.get("/latLong/") async def read_item(lat: float,long:float): mainFunc(lat,long) return
I have the following endpoint in my FastAPI server: @app.post("/submit") async def submit(file1: List[UploadFile] = File(...), file2: List[UploadFile] = File(..
I have two files, both of them runs individually without any error. I used FastAPI to create some endpoints and I am trying to use locust (through a tool invoku
I'm now using sqlalchemy, fastapi develop some REST API. And facing some problem to join multiple tables I have 2 tables as below [campaigns] class Campaign(Bas
I would like to send multiple images to FastAPI backend using Python requests. Server side from fastapi import FastAPI, UploadFile, File from typing import List
I've been developing a fastapi way to query my database, instead of directly using SQL with pg. For some reason, I'm having issues converting the ORM query retu
from http.client import responses from random import randrange from tkinter.tix import STATUS from typing import Optional from urllib import response from fasta
So I have the following FastAPI code: from fastapi import FastAPI app = FastAPI class Demo(BaseModel): content: str = None @app.post("/demo") async d
I am trying to pass authorization header using Documentation page, similar to this page: Since, the documentations are automatic generated in Fast API, I am ha
I built a simple demo project using FastAPI. I would like to POST data to the server in real time (maybe 30fps). # in client while True: .... res = requ
I created a websocket connection with FastAPI to "stream" data which comes from a tedious calculation. The data chunks should be send as soon as they are availa
I do a Post with some parameters, but one of them returns "field required" and "value_error.missing", but the field is there and it has a value. See the output