Open matteogazzadi opened 3 months ago
Thanks for reporting we are checking in to this and update .
I managed to get it working in a logic app by leaving the route empty:
@app.function_name(name="HttpTrigger")
@app.route(route="")
def main(req: func.HttpRequest) -> func.HttpResponse:
I managed to get it working in a logic app by leaving the route empty:
@app.function_name(name="HttpTrigger") @app.route(route="") def main(req: func.HttpRequest) -> func.HttpResponse:
nveenstra, Thank you! This works for my case.
I created new python V2 function Http Trigger using Visual Studio Code. I have not touched the auto generated code, just deployed it.
Then from Azure Logic App, i tried to add the function in my workflow but got constantly the error: "Cannot be called from a logic app. It must not have a custom route."
Doing the same for a C# one does indeed work.
I tried also chaning the
@app.route(route="test_http")
to@app.route(route="req")
and@app.route(methods=["POST"])
but the error on Logic App is persisting and actually did not find a way to overcome this, neither any kind of documentation about this.Here the function code: