Azure / azure-functions-durable-extension

Durable Task Framework extension for Azure Functions
MIT License
711 stars 263 forks source link

Orchestration cannot be triggered via host API #2739

Open ben-ward1 opened 5 months ago

ben-ward1 commented 5 months ago

Description

Orchestration trigger fails when invoked via the host API

Expected behavior

The steps described in Manually run a non HTTP-triggered function can trigger an orchestration

Actual behavior

The function throws an exception saying the TaskOrchestrationContext cannot be bound. See image below.

Repro

  1. Create new Azure Function app using durable orchestration template in Visual Studio 17.8.3
  2. Run function app
  3. Execute curl --request POST -H "Content-Type:application/json" --data '{"input": "anything"}' http://localhost:7163/admin/functions/Function1 -v if using bash or make equivalent http request using another client

    Known workarounds

    Unknown

App Details

Screenshots

manualFuncTrigger

Left window is the terminal where I am executing the request. Right terminal is the output of the running app. In the terminal, I executed two commands differing only in the post body's content. The first error says that context cannot be bound to null if I pass {} in the body. The second error states that context cannot be bound to String if I pass { "input": "anything" }.