简体   繁体   English

function 'functionName' 的侦听器无法启动。 <--- 禁止

[英]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;我们遵循的解决方法;

  • Created Durable function using .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.

相关问题 function 'IotHubTrigger' 的侦听器无法启动。 物联网中心 - The listener for function 'IotHubTrigger' was unable to start. IoTHub 函数的侦听器无法启动。 为什么? - The listener for function was unable to start. Why? 函数的侦听器无法启动。 Azure 函数应用时间触发器 - Listener for function was unable to start. Azure function app timetrigger function '' 的侦听器无法启动。 Azure 耐用 function VS 2022 - The listener for function '' was unable to start. Azure durable function VS 2022 函数“FunctionName”的侦听器无法在 .net core azure 中启动 - The listener for function 'FunctionName' was unable to start in .net core azure function 'Function1' 的侦听器在运行计时器时无法启动 function - The listener for function 'Function1' was unable to start when running a timer function Azure function 在 linux 上出现“侦听器无法启动”错误 - Azure function gets 'Listener unable to start' error on linux 无法在容器启动时更改某些 js/html 文件内容。 获取访问被拒绝异常 - Unable to change some js/html file content on container start. getting access denied exception 持久功能无法启动 - durable function unable to start “函数运行时无法启动” - "The function runtime is unable to start"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM