Skip to content

Instantly share code, notes, and snippets.

@gohjiaying
Last active April 12, 2020 13:44
Show Gist options
  • Save gohjiaying/5aeb922af737b2a903273b9add2efe16 to your computer and use it in GitHub Desktop.
Save gohjiaying/5aeb922af737b2a903273b9add2efe16 to your computer and use it in GitHub Desktop.
A list of debugging techniques

Severless, lambda, Api Gateway

When testing on api gateway received a "module initialization error" but do not know what's the error.

  1. Check api-gateway error logs
  2. Test that the lambda works from console (This helped me to solve my problem)

About CORS:

CORS stands for Cross-origin resource sharing. It is a set of standard HTTP headers used to restrict the access of web resources from other domains. In the web app security model, this is called same-origin policy, and it's supposed to avoid cross-site scripting (XSS) attacks. Browsers will not fetch the requested resources unless the corresponding server attaches the required HTTP headers in the OPTIONS call (or GET method).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment