gpt4 book ai didi

azure - 错误索引方法 FunctionName 未解析为值

转载 作者:行者123 更新时间:2023-12-02 22:57:23 26 4
gpt4 key购买 nike

有谁知道为什么我会收到此错误?这是我的 SendGrid 输出绑定(bind):

{
"bindings": [
{
"name": "docId",
"type": "queueTrigger",
"direction": "in",
"queueName": "movedocument",
"connection": "cpoffice365_STORAGE"
},
{
"type": "sendGrid",
"name": "message",
"apiKey": "<MYSENDGRIDKEY>",
"from": "<MYFROMEMAIL>",
"direction": "out"
}
],
"disabled": false
}

我的代码可以编译,但随后会在日志中抛出此错误:

Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.<MYFUNCTIONAME>'. Microsoft.Azure.WebJobs.Host: '<MYSENDGRIDKEY>' does not resolve to a value.

最佳答案

斯塔托,

请确保您定义的应用设置(功能应用设置 > 应用设置)的名称与您用于绑定(bind)配置的名称相匹配,其中值是您的 Sendgrid 键。

绑定(bind)配置期望它是应用设置名称,而不是实际的 key 。

谢谢!

关于azure - 错误索引方法 FunctionName 未解析为值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40613024/

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