Azure Timer Function启动失败:Listener异常及存储模拟器问题求助
Azure Functions Timer触发器启动失败排查求助
我有一个包含普通函数和Timer Function的Azure Function项目,Timer Function突然停止工作,报错:
The listener for function 'Function1' was unable to start. Azure.Storage.Blobs: Service request failed.
为排查问题,我创建了全新的示例Azure Function项目,同样出现该问题,控制台完整日志如下:
Azure Functions Core Tools Core Tools Version: 4.0.4895 Commit hash: N/A (64-bit) Function Runtime Version: 4.13.0.19486 [2022-12-05T05:39:46.886Z] Found C:\Visual Studio 2022\Projects\FunctionApp2\FunctionApp2\FunctionApp2.csproj. Using for user secrets file configuration. Functions: Function1: timerTrigger For detailed output, run func with --verbose flag. [2022-12-05T05:39:49.681Z] The listener for function 'Function1' was unable to start. [2022-12-05T05:39:49.682Z] The listener for function 'Function1' was unable to start. Azure.Storage.Blobs: Service request failed. [2022-12-05T05:39:49.683Z] Status: 400 (The value for one of the HTTP headers is not in the correct format.) [2022-12-05T05:39:49.683Z] ErrorCode: InvalidHeaderValue [2022-12-05T05:39:49.684Z] [2022-12-05T05:39:49.684Z] Headers: [2022-12-05T05:39:49.685Z] Server: Azurite-Blob/3.14.1 [2022-12-05T05:39:49.685Z] x-ms-error-code: InvalidHeaderValue [2022-12-05T05:39:49.686Z] x-ms-request-id: 9d066414-f486-4f91-8b1a-a1f7b5ee9641 [2022-12-05T05:39:49.686Z] Date: Mon, 05 Dec 2022 05:39:49 GMT [2022-12-05T05:39:49.687Z] Connection: keep-alive [2022-12-05T05:39:49.687Z] Keep-Alive: REDACTED [2022-12-05T05:39:49.688Z] Content-Length: 0 [2022-12-05T05:39:49.689Z] .
已做排查动作:
- 检查
C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator路径下的AzureStorageEmulator状态,结果为IsRunning=False - 尝试执行
init和start命令启动模拟器,均失败(相关配置截图已附上) - 搜索同类问题,未找到可行解决方案
请教各位,该问题可能的原因是什么?有哪些解决建议?
内容的提问来源于stack exchange,提问作者abhilashca
相关产品推荐
相关产品推荐

