About 50 results
Open links in new tab
  1. python - Does FastAPI still need Gunicorn? - Stack Overflow

    Jul 8, 2025 · Shortly after, FastAPI’s creator deprecated the tiangolo/uvicorn-gunicorn-fastapi Docker image, stating: Now that Uvicorn supports managing workers with --workers, including restarting …

  2. How to configure FastAPI logging so that it works both with Uvicorn ...

    Aug 29, 2023 · 1. Setting up the uvicorn logger Straight from the documentation: Logging --log-config <path> - Logging configuration file. Options: dictConfig() formats: .json, . yaml. Any other format will …

  3. 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 …

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

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

  5. python - FastAPI: Swagger UI does not render because of custom ...

    Feb 14, 2022 · Here's how you could do that (inspired by this). Make sure to check the Content-Type of the response (as shown below), so that you can modify it by adding the metadata, only if it is of …

  6. FastAPI throws an error (Error loading ASGI app. Could not import ...

    fastapi run <file or package where your FastAPI app instance is> So FastAPI will under the hood take care of the uvicorn command stuff for you

  7. 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 …

  8. How to pass URL as a path parameter to a FastAPI route?

    Jun 29, 2022 · The reason is simply because when FastAPI decodes the complete request URL (i.e., request.url), any %2F characters are converted back to /, and hence, it recognizes those forward …

  9. Python: FastAPI error 422 with POST request when sending JSON data

    Jan 27, 2020 · Also, note that FastAPI/Starlette uses the standard json library for parsing the data behind the scenes. If one is looking for a faster alternative, please have a look at this answer that …

  10. How to add both file and JSON body in a FastAPI POST request?

    Dec 30, 2020 · Whenever a new request arrives, FastAPI will take care of calling your dependency, getting the result and assigning that result to the parameter (e.g., base) in your endpoint. For more …