Azure耐用功能"未找到"

时间:2018-05-30 21:26:39

标签: c# azure azure-functions azure-durable-functions

我正在尝试运行Microsoft持久性函数示例。 The article is here。当我运行函数项目(C#,Visual Studio)时,它似乎启动正常,CLI旋转,我得到主机初始化和列出的两个起始URL。

Http Functions:

        HttpStart: http://localhost:7071/orchestrators/{functionName}

        HttpSyncStart: http://localhost:7071/orchestrators/{functionName}/wait

然而,当我导航到一个功能启动它时,它告诉我" Not Found"例如通过:

  

http://localhost:7071/orchestrators/E1_HelloSequence

我得到"未找到":

[30/05/2018 21:17:40] Executed HTTP request: {
[30/05/2018 21:17:40]   "requestId": "9b82e4b2-c0df-4cf4-a191-ce7d7709d30f",
[30/05/2018 21:17:40]   "method": "GET",
[30/05/2018 21:17:40]   "uri": "/orchestrators/E1_HelloSequence",
[30/05/2018 21:17:40]   "authorizationLevel": "Anonymous",
[30/05/2018 21:17:40]   "status": "NotFound"
[30/05/2018 21:17:40] }

任何想法为什么这个最基本的样本如果给我这么头疼?我尝试了很多不同的组合,但都无济于事。

1 个答案:

答案 0 :(得分:4)

您正在发出GET个请求,而HttpStart在示例中定义为POST。请更改您的请求,或将GET添加到function.json