c# - Azure 持久功能 "Not Found"

标签 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

但是,当我导航到一个函数来启动它时,它告诉我“未找到”,例如通过:

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] }

知道为什么这个最基本的示例让我如此头痛吗?我尝试了很多不同的组合,但都无济于事。

最佳答案

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

关于c# - Azure 持久功能 "Not Found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50613574/

相关文章:

.net - 命名空间 Microsoft.Extensions 中不存在缓存

c# - 除了修改web.config之外如何重启asp.net应用程序

c# - Func<Owned<T>> 与 Func<T> 依赖关系

c# - Tasks/Thread/Delegate.beginInvoke with Thread.Sleep()

c# - Azure 函数 - 在 Azure 存储中找不到方法

c# - 我在 Azure Function Monitor 日志屏幕中看到条目。如何在 Application Insights 中找到它们?

Azure Functions 部署源 Visual Studio Team Service 项目

c# - 通过添加新接口(interface)修复循环依赖

node.js - Azure Web应用程序: activate application logging for more than 12 hours

c# - 发送异步 Azure 事件中心数据方法