Skip to content

Instantly share code, notes, and snippets.

@youngsoul
Created March 12, 2020 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save youngsoul/9d1453c4de70bdb4dcb22687897df24e to your computer and use it in GitHub Desktop.
Save youngsoul/9d1453c4de70bdb4dcb22687897df24e to your computer and use it in GitHub Desktop.
Output from hitting the unsecured Cognito API Endpoint
POST https://XXX.execute-api.us-east-1.amazonaws.com/test/add-note
Content-Type: application/json
{"note":"Bring home milk"}
###
POST https://XXX.execute-api.us-east-1.amazonaws.com/test/add-note
HTTP/1.1 500 Internal Server Error
Date: Thu, 12 Mar 2020 00:49:43 GMT
Content-Type: application/json
Content-Length: 74
Connection: keep-alive
x-amzn-RequestId: 66abd43d-e624-42e7-b9c6-278c6f93ad16
x-amz-apigw-id: JQIOAEcqoAMFfsw=
X-Amzn-Trace-Id: Root=1-5e698726-a3c034f1af2904d1ae2517da;Sampled=0
"Error in processing request. event['headers'] is missing 'token' section"
Response code: 500 (Internal Server Error); Time: 5152ms; Content length: 74 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment