简体   繁体   中英

Azure Function REST API PUT returns 202

I have a REST API built in an Azure function.My PUT endpoints are returning the 202 async pattern, but all other endpoints are returning 200s.

This returns a 200 after updating the user's profile image

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

This returns a 202 Accepted and never completes

        [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. 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

If anyone else finds this, it's a known issue in the Azure Functions runtime. The issue being tracked here: https://github.com/Azure/Azure-Functions/issues/1878 and here https://github.com/Azure/azure-functions-host/issues/7260

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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