title: How to troubleshoot this AWS lambda error - An error has occurred: Received error response from Lambda: Unhandled?
body: <p>I'm new to AWS. I'm build chatbot using aws lex and aws lambda c#. I'm using sample aws lambda C# program</p>
  
  <pre><code>namespace AWSLambda4
  {
      public class Function
      {
  
          /// &lt;summary&gt;
          /// A simple function that takes a string and does a ToUpper
          /// &lt;/summary&gt;
          /// &lt;param name="input"&gt;&lt;/param&gt;
          /// &lt;param name="context"&gt;&lt;/param&gt;
          /// &lt;returns&gt;&lt;/returns&gt;
          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;
              }
          }
      }
  }
  </code></pre>
  
  <p>I created a slot in aws lex to map first parameter <strong>input</strong> . But i'm always getting this error <strong>An error has occurred: Received error response from Lambda: Unhandled</strong></p>
  
  <p>In Chrome network tab i could see <strong>Error- 424 Failed Dependency</strong> which is related to authentication.</p>
  
  <p>Please help how to troubleshoot AWS lambda C# error which is used by aws lex. I came across cloudwatch but I'm not sure about that.</p>
  
  <p>Thanks!</p>