<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title>Bing: Fastapi API</title><link>http://www.bing.com:80/search?q=Fastapi+API</link><description>Search results</description><image><url>http://www.bing.com:80/s/a/rsslogo.gif</url><title>Fastapi API</title><link>http://www.bing.com:80/search?q=Fastapi+API</link></image><copyright>Copyright © 2026 Microsoft. All rights reserved. These XML results may not be used, reproduced or transmitted in any manner or for any purpose other than rendering Bing results within an RSS aggregator for your personal, non-commercial use. Any other use of these results requires express written permission from Microsoft Corporation. By accessing this web page or using these results in any manner whatsoever, you agree to be bound by the foregoing restrictions.</copyright><item><title>swagger - FastAPI Fetch error Failed to load .../openapi.json: 404 ...</title><link>https://stackoverflow.com/questions/78649231/fastapi-fetch-error-failed-to-load-openapi-json-404-error-when-deployed-in</link><description>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 resolved it: Set the root_path in FastAPI configuration: This tells FastAPI to prepend the given root path to all routes, ensuring that the OpenAPI documentation and other paths are correctly resolved. app = FastAPI ...</description><pubDate>Thu, 02 Apr 2026 21:16:00 GMT</pubDate></item><item><title>FastAPI throws an error (Error loading ASGI app. Could not import ...</title><link>https://stackoverflow.com/questions/60819376/fastapi-throws-an-error-error-loading-asgi-app-could-not-import-module-api</link><description>fastapi run &lt;file or package where your FastAPI app instance is&gt; So FastAPI will under the hood take care of the uvicorn command stuff for you</description><pubDate>Sat, 04 Apr 2026 10:58:00 GMT</pubDate></item><item><title>Python FastAPI base path control - Stack Overflow</title><link>https://stackoverflow.com/questions/70219200/python-fastapi-base-path-control</link><description>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 a different root path?</description><pubDate>Thu, 02 Apr 2026 21:59:00 GMT</pubDate></item><item><title>How to configure FastAPI logging so that it works both with Uvicorn ...</title><link>https://stackoverflow.com/questions/77001129/how-to-configure-fastapi-logging-so-that-it-works-both-with-uvicorn-locally-and</link><description>1. Setting up the uvicorn logger Straight from the documentation: Logging --log-config &lt;path&gt; - Logging configuration file. Options: dictConfig() formats: .json, . yaml. Any other format will be processed with fileConfig(). Set the formatters.default.use_colors and formatters.access.use_colors values to override the auto-detected behavior. If you wish to use a YAML file for your logging config ...</description><pubDate>Sat, 04 Apr 2026 11:05:00 GMT</pubDate></item><item><title>Python: FastAPI error 422 with POST request when sending JSON data</title><link>https://stackoverflow.com/questions/59929028/python-fastapi-error-422-with-post-request-when-sending-json-data</link><description>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 demonstrates how to use orjson instead. Test all the options above Using Python requests library Related answer can be found here.</description><pubDate>Thu, 02 Apr 2026 19:22:00 GMT</pubDate></item><item><title>fastapi - How to read body as any valid json? - Stack Overflow</title><link>https://stackoverflow.com/questions/64379089/how-to-read-body-as-any-valid-json</link><description>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 payload that doesn't match passed Pydantic-typed parameters (the whole payload in our case) and converts it to the appropriate Python type.</description><pubDate>Sat, 04 Apr 2026 01:18:00 GMT</pubDate></item><item><title>How to log raw HTTP request/response in FastAPI?</title><link>https://stackoverflow.com/questions/69670125/how-to-log-raw-http-request-response-in-fastapi</link><description>We are writing a web service using FastAPI that is going to be hosted in Kubernetes. For auditing purposes, we need to save the raw JSON body of the request/response for specific routes. The body s...</description><pubDate>Thu, 02 Apr 2026 16:23:00 GMT</pubDate></item><item><title>FastAPI/uvicorn not working when specifying host [duplicate]</title><link>https://stackoverflow.com/questions/60132045/fastapi-uvicorn-not-working-when-specifying-host</link><description>The FastAPI/uvicorn server is not working when specifying the host.</description><pubDate>Sun, 05 Apr 2026 16:12:00 GMT</pubDate></item><item><title>How to return data in JSON format using FastAPI? - Stack Overflow</title><link>https://stackoverflow.com/questions/73972660/how-to-return-data-in-json-format-using-fastapi</link><description>FastAPI (actually Starlette) will automatically include a Content-Length header. It will also include a Content-Type header, based on the media_type and appending a charset for text types. Hence, you can also set the media_type to whatever type you are expecting the data to be; in this case, that is application/json. Example is given below.</description><pubDate>Sat, 04 Apr 2026 17:03:00 GMT</pubDate></item><item><title>fastapi @app.on_event decorator is deprecated, how can I create a ...</title><link>https://stackoverflow.com/questions/78042466/fastapi-app-on-event-decorator-is-deprecated-how-can-i-create-a-simple-repeat</link><description>I have the following decorator that works perfectly, but fastapi says @app.on_event ("startup") is deprecated, and I'm unable to get @repeat_every () to work with lifespan. from fastapi_utils.</description><pubDate>Tue, 31 Mar 2026 18:12:00 GMT</pubDate></item></channel></rss>