代码之家  ›  专栏  ›  技术社区  ›  Murray Foxcroft

azure持久函数“未找到”

  •  1
  • Murray Foxcroft  · 技术社区  · 6 年前

    我正在尝试运行Microsoft持久函数示例。 The article is here . 当我运行functions项目(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] }
    

    你知道为什么这些最基本的样本会让我头痛吗?我试过很多不同的组合,都没有用。

    1 回复  |  直到 6 年前
        1
  •  4
  •   Mikhail Shilkov    6 年前

    你在做一个 GET 请求,而 HttpStart 定义为 POST 在样本中。更改您的请求,或添加 得到 function.json .

    推荐文章