title: {"message":"Missing Authentication Token"} when curling and endpoint for a Serverless Lambda function
body: <p>I've cloned and deployed the example Serverless Lambda function from this repository, <a href="https://github.com/serverless/examples/tree/master/aws-python-simple-http-endpoint" rel="nofollow noreferrer">https://github.com/serverless/examples/tree/master/aws-python-simple-http-endpoint</a>, which has an endpoint which simply prints the current time:</p>
  
  <pre><code>import json
  import datetime
  
  
  def endpoint(event, context):
      current_time = datetime.datetime.now().time()
      body = {
          "message": "Hello, the current time is " + str(current_time)
      }
  
      response = {
          "statusCode": 200,
          "body": json.dumps(body)
      }
  
      return response
  </code></pre>
  
  <p>I've deployed it:</p>
  
  <pre><code>&gt; serverless deploy list functions
  Serverless: Listing functions and their last 5 versions:
  Serverless: -------------
  Serverless: currentTime: $LATEST, 1
  </code></pre>
  
  <p>and am able to invoke it using <code>serverless invoke</code>:</p>
  
  <pre><code>&gt; serverless invoke --function currentTime --log
  {
      "body": "{\"message\": \"Hello, the current time is 22:51:06.872660\"}",
      "statusCode": 200
  }
  --------------------------------------------------------------------
  START RequestId: d4629611-e16b-4afa-80ef-5ac1a7331679 Version: $LATEST
  END RequestId: d4629611-e16b-4afa-80ef-5ac1a7331679
  REPORT RequestId: d4629611-e16b-4afa-80ef-5ac1a7331679  Duration: 0.32 ms   Billed Duration: 100 ms     Memory Size: 1024 MB    Max Memory Used: 43 MB  
  </code></pre>
  
  <p>In the AWS console, I looked up the Lambda's function's endpoint under the 'API Gateway' service, </p>
  
  <p><a href="https://i.stack.imgur.com/kHpnY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kHpnY.png" alt="enter image description here"></a></p>
  
  <p>and tried to <code>curl</code> it. However, I get an error for a missing authorization token:</p>
  
  <pre><code>curl https://x6gnvhuuzh.execute-api.us-east-1.amazonaws.com/dev
  {"message":"Missing Authentication Token"}⏎  
  </code></pre>
  
  <p>According to the <code>README.md</code> for that example, I should see the same output as for the <code>serverless invoke</code>. Any idea why the endpoint is returning a <code>Missing Authentication Token</code> message?</p>