title: Why can't I see logs in my lambda function?
body: <p>I've been trying in vain to see logs for my lambda function. No matter what I see this:</p>
  
  <p><a href="https://i.stack.imgur.com/V88Db.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V88Db.png" alt="AWS Lambda Logs Error"></a></p>
  
  <p>To be clear, the lambda function runs properly. I just can't see the logs at all.</p>
  
  <p>I've recreated the function multiple times to make sure it wasn't me accidentally mucking with a setting that disabled logging. </p>
  
  <p>My steps:</p>
  
  <ol>
  <li>From the AWS Lambda function page, create a new function. I'm using nodejs 8.10, but it seems to fail even if I use a 6.x version.</li>
  <li>Upload a zip file with my function (including the node_modules directory, package.json and package-lock.json as well) to S3 into <code>testbucket</code> with the filename <code>thumbnails.zip</code>.</li>
  <li>Use this command to publish my lambda function from S3: <code>aws lambda update-function-code --function-name transcode-v2 --s3-bucket mytestbucket --s3-key thumbnails.zip</code>.</li>
  <li>I can test my function with sample data and the test button. </li>
  <li>I can also invoke it from the CLI and it seems to "work" (in that it runs)</li>
  </ol>
  
  <p>I always see this message when I go to cloud logs: <code>There was an error loading Log Streams. Please try again by refreshing this page.</code> I've tried recreating the function twice and this does not fix it. </p>
  
  <p>Anyone know what is wrong here? The function seems to work under test (meaning, I see logs inside the test logging dialog), and when I invoke from the command line. But, nothing ever gets into the cloud logging page except for that error.</p>
  
  <p>I can see that invocations are being triggered from AWS.</p>
  
  <p><a href="https://i.stack.imgur.com/6UzAw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6UzAw.png" alt="AWS Invocations"></a></p>