gpt4 book ai didi

c# - 从逻辑应用调用 Azurefunction 会抛出 "Runtime keys are stored on blob storage. This API doesn' t 支持此配置。”

转载 作者:行者123 更新时间:2023-12-02 06:47:20 24 4
gpt4 key购买 nike

我有一个逻辑应用程序,它调用多个函数应用程序。这工作得很好,但是当逻辑应用程序调用该函数时,我突然遇到了错误。错误是:

{
"Message": "The 'code' query parameter provided in the HTTP request did not match the expected value."
}

我们没有重新生成 key , key 是有效的,因为我们可以使用 postman 执行 webhook 函数。

但是当我不看事件日志时,我在 listkeys 操作上收到以下错误:

{
"Message": "An error has occurred.",
"ExceptionMessage": "Runtime keys are stored on blob storage. This API doesn't support this configuration.",
"ExceptionType": "System.InvalidOperationException",
"StackTrace": " at Kudu.Core.Functions.FunctionManager.<GetKeyObjectFromFile>d__9`1.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at Kudu.Core.Functions.FunctionManager.<GetFunctionSecretsAsync>d__12.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at Kudu.Services.Functions.FunctionController.<GetSecrets>d__12.MoveNext()"
}

有没有办法改变 key 的存储方式?为什么我突然从一分钟到另一分钟没有任何变化地收到此消息?

最佳答案

我解决了我的问题。

它发现应用程序设置是此错误的指示器。

当您将应用程序设置“AzureWebJobsSecretStorageType”设置为“blob”时,您将收到上述错误!

删除此设置为我解决了这个问题!

关于c# - 从逻辑应用调用 Azurefunction 会抛出 "Runtime keys are stored on blob storage. This API doesn' t 支持此配置。”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46987439/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com