For the benefit of others coming across this post, the issue was the payload when running non-http functions via the Admin API as covered here should be as follows
{
"input": "<payload-normally-sent-to-the-function-as-a-string>",
}
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a durable function starter defined like the one below. How can I trigger it via postman for my API testing instead of triggering the test request via a ServiceBusTrigger? I followed the instructions listed here. This works when I pass the payload in "code and test" window of function app. But I see this error when I pass the payload for MyDto from postman -
System.ArgumentNullException : Value cannot be null. (Parameter value)\n at Microsoft.Azure.WebJobs.ServiceBus.ServiceBusTriggerBindingStrategy.GetBindingData(ServiceBusTriggerInput value)\
I have a durable function starter defined like the one below. How can I trigger it via postman for my API testing instead of triggering the test request via a ServiceBusTrigger? I followed the instructions listed here. But I see this error when I pass the payload for MyDto from postman - "type": "System.ArgumentNullException", "message": "Value cannot be null. (Parameter 'value')",
[Function(nameof(MyFunctionStarter))]
public async System.Threading.Tasks.Task RunAsync(
[ServiceBusTrigger(StorageBusQueueName,
Connection = StorageBusConnectionString)] MyDto incomingMessage,
[DurableClient] DurableTaskClient durableTaskClient)
{
c#.netazureazure-functions
For the benefit of others coming across this post, the issue was the payload when running non-http functions via the Admin API as covered here should be as follows
{
"input": "<payload-normally-sent-to-the-function-as-a-string>",
}