简体   繁体   English

Azure Function REST API PUT返回2083A14FZ

[英]Azure Function REST API PUT returns 202

I have a REST API built in an Azure function.我有一个 REST API 内置在 Azure ZC1C425268E68385D1AB5074F4C17 中My PUT endpoints are returning the 202 async pattern, but all other endpoints are returning 200s.我的 PUT 端点返回 202 异步模式,但所有其他端点都返回 200。

This returns a 200 after updating the user's profile image这在更新用户的个人资料图像后返回 200

        public async Task<IActionResult> PutProfileImage(
          [HttpTrigger(AuthorizationLevel.Function, "post", Route = "profileimage")] HttpRequest req,
          ILogger log)

This returns a 202 Accepted and never completes这将返回 202 Accepted 并且永远不会完成

        [FunctionName("PutProfileImage")]
        public async Task<IActionResult> PutProfileImage(
          [HttpTrigger(AuthorizationLevel.Function, "put", Route = "profileimage")] HttpRequest req,
          ILogger log)

Windows 10, VS 2019 16.9.4, Azure Functions V3, .NET Core 3.1. Windows 10,VS 2019 16.9.4,Azure 功能 V3,.NET 核心 3.1。 Happy to gather any more info that might help to understand this behavior.很高兴收集更多可能有助于理解这种行为的信息。

Update 5/8/2021 This is a known issue being tracked here: https://github.com/Azure/Azure-Functions/issues/1878 and here https://github.com/Azure/azure-functions-host/issues/7260 2021 年 5 月 8 日更新 这是一个在此处跟踪的已知问题: https://github.com/Azure/Azure-Functions/issues/1878和此处https://github.com/Azure/azure-functions-host/问题/7260

If anyone else finds this, it's a known issue in the Azure Functions runtime.如果其他人发现此问题,则这是 Azure Functions 运行时中的一个已知问题。 The issue being tracked here: https://github.com/Azure/Azure-Functions/issues/1878 and here https://github.com/Azure/azure-functions-host/issues/7260此处跟踪的问题: https://github.com/Azure/Azure-Functions/issues/1878和此处https://github.com/Azure/azure-functions-host/issues/7260

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM