title: AWS SDK - Invoke Lambda function no response on success
body: <p>I've setup a Lambda function and it is working fine. Now I want to invoke the function from my node.js Server, see below:</p>
  <pre><code>const lambda = new AWS.Lambda({ region: 'my-region', maxRetries: 0, httpOptions: { connectTimeout: 720000, timeout: 720000 } }); //12min
  const params = {
    FunctionName: 'my-function-name',
    Payload: JSON.stringify({
      myPayload
    })
  };
  
  try {
    const res = await lambda.invoke(params).promise();
    console.log(res);
  } catch (error) {
    console.log(error);
  }
  </code></pre>
  <p>This is also invoking the function and it also finishes correctly. The problem is that it does not return a response, it rather times out. Despite the successful finish of the function.</p>
  <p>Any idea why that could be the case?</p>
  <p>EDIT:
  Short note my function takes about 10 mins to execute. I just tested it with a faster function (1min) and it worked as expected. So maybe its a Bug if it takes to long?</p>