[英]The listener for function 'functionName' was unable to start. <--- Forbidden
I am trying to implement azure durable functions in C# I have few activity triggers there myActitivityTrigger1,myActitivityTrigger2我正在尝试在 C# 中实现 azure 持久功能 我那里几乎没有活动触发器 myActivityTrigger1,myActivityTrigger2
Its all working fine locally (From Visual Studio).它在本地一切正常(来自 Visual Studio)。 But when I deployed it into azure, it starts saying
但是当我将它部署到 azure 时,它开始说
The listener for function 'myActitivityTrigger1' was unable to start.
function 'myActivityTrigger1' 的侦听器无法启动。 <--- Forbidden
<--- 禁止
[FunctionName("dqService")]
public static async Task<string> InvokeObjectMetadata([ActivityTrigger] string name, ILogger log)
{
await Task.Delay(10000);
//log.LogInformation($"ObjectMetadata fired");
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Dq Service Fired");
return $"Hello {name}!";
}
What could be the reason this is firing in azure only这可能是什么原因仅在 azure 中触发
We have also tried to recreate the issue from our end but its working fine withput giving us any error .我们还尝试从我们的角度重新创建问题,但它工作正常,但会给我们任何错误。
Workaround that we follow;我们遵循的解决方法;
.net
and tested locally with the added connection string of our storage account in localsettings.json
( in VS CODE) and it returns as expected ..net
创建了 Durable function 并使用我们在localsettings.json
中添加的存储帐户的连接字符串在本地进行了测试(在 VS CODE 中),它返回为预期的代码。And then deploy the function to our function app and make sure that we have the correct connection string as on localsettings.json
file because its not being deploy.然后将 function 部署到我们的 function 应用程序,并确保我们在
localsettings.json
文件中具有正确的连接字符串,因为它没有被部署。 Then call the function with providing correct uri with function name.然后调用 function 并提供正确的 uri 和 function 名称。
https://orc************.azurewebsites.net/api/DurableFunctionsOrchestrationCSharp1_HttpStart
OUTPUT DETAILS:- OUTPUT 详细信息:-
For more information please refer this MICROSOFT DOCUMENTATION .有关详细信息,请参阅此MICROSOFT 文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.