About 50 results
Open links in new tab
  1. Python FastAPI base path control - Stack Overflow

    Dec 3, 2021 · When I use FastAPI , how can I sepcify a base path for the web-service? To put it another way - are there arguments to the FastAPI object that can set the end-point and any others I define, to …

  2. fastapi - How to read body as any valid json? - Stack Overflow

    Oct 15, 2020 · The accepted answer is valid as well, but FastAPI provides a built-in way to do that - check the Singular values in body section in docs. A parameter with the default Body gets all the …

  3. Newest 'fastapi' Questions - Stack Overflow

    Jan 30, 2026 · Stack Overflow | The World’s Largest Online Community for Developers

  4. How to force all exceptions to go through a FastAPI middleware?

    Apr 9, 2024 · FastAPI's documentation provides a way to override the default behavior for specific exceptions, but this is tedious and not scalable. Is there a way to globally force all exception handling …

  5. python - How can I install fastapi properly? - Stack Overflow

    Dec 26, 2021 · 0 When you install with pip install "fastapi[standard]" it comes with some default optional standard dependencies.

  6. Performance results differ between run_in_threadpool () and run_in ...

    Jun 26, 2025 · Using run_in_threadpool() FastAPI is fully compatible with (and based on) Starlette, and hence, with FastAPI you get all of Starlette's features, such as run_in_threadpool(). Starlette's …

  7. swagger - FastAPI Fetch error Failed to load .../openapi.json: 404 ...

    Jun 20, 2024 · It seems the issue arises because FastAPI needs to know the root path for all routes when deployed behind a reverse proxy or API Gateway that adds a prefix to the URL. Here's how I …

  8. FastAPI application: page stuck loading - Stack Overflow

    Jul 16, 2025 · I'm trying to create a basic FastAPI application. Initially, my project directory looked like this: .venv/ main.py where .venv/ is my virtual environment with FastAPI installed, while main.py has ...

  9. FastAPI/uvicorn not working when specifying host [duplicate]

    The FastAPI/uvicorn server is not working when specifying the host.

  10. Python FASTAPI shedule task - Stack Overflow

    Jul 22, 2022 · 10 I want to write a task that will only run once a day at 3:30 p.m. with Python FASTAPI. How can I do it? I tried this but it works all the time.