I followed quickstart-python-vscode and deployed an example Durable Functions app.
When I try to call the /api/orchestrators/hello_orchestrator
endpoint, I am getting the following error:
2025-01-07T09:28:05Z [Verbose] Request successfully matched the route with name 'http_start' and template 'api/orchestrators/{functionName}'
2025-01-07T09:28:05Z [Verbose] AuthenticationScheme: WebJobsAuthLevel was not authenticated.
2025-01-07T09:28:05Z [Verbose] AuthenticationScheme: Bearer was not authenticated.
2025-01-07T09:28:05Z [Information] Authorization failed. These requirements were not met:
Microsoft.Azure.WebJobs.Script.WebHost.Security.Authorization.FunctionAuthorizationRequirement
2025-01-07T09:28:05Z [Information] Executing StatusCodeResult, setting HTTP status code 401
It turned this cryptic error message meant I was passing a wrong, outdated function key in the x-functions-key
header.
Using an up-to-date key from "Function App / App Keys" solved the problem.