Linked Questions

1 vote
3 answers
12k views

I am using FastAPI to make get/post/put/del requests, which all work perfectly fine in the browser. I wanted to use Postman to do the exact same thing; however, I am running into an issue trying to do ...
Masterstack8080's user avatar
2 votes
1 answer
2k views

I cannot seem to send a POST request to a FastAPI app through Postman. FastAPI version 0.89.1 Python version 3.10.9 from fastapi import FastAPI from fastapi.params import Body from pydantic import ...
Ari's user avatar
  • 926
1 vote
1 answer
2k views

I am writing because I have a problem with fastAPI and postman. I have this post function @router.post('/', status_code=status.HTTP_201_CREATED) def create(request: schemas.Blog, db: Session = Depends(...
KarolB's user avatar
  • 21
2 votes
0 answers
602 views

My code: @app.post('/create') async def createUser(request: UserRequest, db: Session = Depends(get_db)): print(request) _user = crud.createUser(db, user_schema=request.parameter) ...
TASK's user avatar
  • 345
1 vote
0 answers
100 views

POST throws me an error: value is not a valid dict (type=type_error.dict). What is wrong with my code?? It does however insert data in the DB despite the error. My models.py: class Checkpoint(...
Gusbc's user avatar
  • 41
123 votes
13 answers
335k views

I'm building a simple API to test a database. When I use GET request everything works fine, but if I change to POST, I get 422 Unprocessable Entity error. Here is the FastAPI code: from fastapi import ...
Smith's user avatar
  • 1,527
10 votes
2 answers
30k views

My POST request continues to fail with 422 response, even though valid JSON is being sent. I am trying to create a web app that receives an uploaded text file with various genetic markers and sends it ...
ahutchful's user avatar
  • 105
10 votes
2 answers
13k views

I have a file called main.py in which I put a POST call with only one input parameter (integer). Simplified code is given below: from fastapi import FastAPI app = FastAPI() @app.post("/...
LJG's user avatar
  • 787
5 votes
1 answer
11k views

I am trying to pass a value called 'ethAddress' from an input form on the client to FastAPI so that I can use it in a function to generate a matplotlib chart. I am using fetch to POST the inputted ...
spal's user avatar
  • 338
3 votes
2 answers
13k views

I have implemented a endpoint in FastAPI and I am testing it from Postman. But whenever I send request I get this error: There was an error parsing the body While searching for the error, I found a ...
Usama Hameed's user avatar
1 vote
1 answer
5k views

Using the FastAPI documentation, I'm attempting to send a POST request to an endpoint that takes a JSON object with a list as input: { "urls":[ "https://www.website.com/", ...
user1583016's user avatar
0 votes
2 answers
3k views

I am creating a web app for registration and I am getting 422 unprocessed error. This is my fastapi code: app = FastAPI() Base.metadata.create_all(bind=engine) metadata = Base.metadata origins = [ ...
Pratham Sampat's user avatar
1 vote
2 answers
1k views

I have a webhook listener that uses an APIRouter to designate the route for the application on the FastAPI server. The app should receive a POST request (expecting data in JSON format) and log this to ...
joe_bill.dollar's user avatar