我有一个包含普通函数和计时器函数的 Azure 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] .
我检查了状态AzureStorageEmulator
在位置C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator
。状态是IsRunning=False
(下面添加了屏幕截图):
I tried init
and start
在 AzureStorageEmulator 上出现以下错误:
下面是设置的样子
我阅读了类似的问题,但没有一个解决方案能解决问题。有人遇到过类似的问题吗?任何人都可以建议这里可能存在什么问题吗?
提前致谢。
使用 MS Azure 存储资源管理器,转到 Azure 模拟器/Blob 容器并从那里删除所有内容。
在 VS 中重建并运行您的项目
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)