我是 AWS 新手。我正在使用 aws lex 和 aws lambda c# 构建聊天机器人。我正在使用示例 aws lambda C# 程序
namespace AWSLambda4
{
public class Function
{
/// <summary>
/// A simple function that takes a string and does a ToUpper
/// </summary>
/// <param name="input"></param>
/// <param name="context"></param>
/// <returns></returns>
public string FunctionHandler(string input, ILambdaContext context)
{
try
{
return input?.ToUpper();
}
catch (Exception e)
{
return "sorry i could not process your request due to " + e.Message;
}
}
}
}
我在 aws lex 中创建了一个插槽来映射第一个参数input。但我总是收到此错误发生错误:收到来自 Lambda 的错误响应:未处理
在 Chrome 网络选项卡中,我可以看到与身份验证相关的Error-424 Failed Dependency。
请帮助如何解决 aws lex 使用的 AWS lambda C# 错误。我遇到了 cloudwatch,但我不确定。
谢谢!