We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a very weird issue and it only happens when I add the load_dotenv() line.
Environment: Azure function locally with Fast API
References:
Code:
[import logging import azure.functions as func import os import openai from FastAPIApp import app # Main API application from dotenv import load_dotenv load_dotenv() @app.get("/sample") async def index(): return { "info": "Try /hello/Shivani for parameterized route.", } @app.get("/hello/{name}") async def get_name(name: str): return { "name": name, } async def main(req: func.HttpRequest, context: func.Context) -> func.](url)HttpResponse: return await func.AsgiMiddleware(app).handle_async(req, context)
Without load_dotenv() the code works perfect, any idea?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a very weird issue and it only happens when I add the load_dotenv() line.
Environment:
Azure function locally with Fast API
References:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-vs-code?tabs=nodejs#debugging-functions-locally
https://github.com/Azure-Samples/fastapi-on-azure-functions/tree/main
Code:
Without load_dotenv() the code works perfect, any idea?
The text was updated successfully, but these errors were encountered: