The function throws an exception saying the TaskOrchestrationContext cannot be bound. See image below.
Repro
Create new Azure Function app using durable orchestration template in Visual Studio 17.8.3
Run function app
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
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" }.
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
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 clientKnown workarounds
Unknown
App Details
Screenshots
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" }
.