Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-node-typescript-nest Deploy Error #386

Open
faridhajnal opened this issue Apr 18, 2019 · 0 comments
Open

aws-node-typescript-nest Deploy Error #386

faridhajnal opened this issue Apr 18, 2019 · 0 comments

Comments

@faridhajnal
Copy link

Hello, I am trying the example for aws-node-typescript-nest. If I clone it and run it locally or deploy it, it works nicely, however I am trying to add the Mongoose Module for Nest and connect to my Atlas DB Cluster. If I test locally, it works nicely again (meaning it fetches information from the Cloud DB for instance). However when I deploy to AWS it gets deployed with no errors but when I try hitting my API gateway endpoint I get an Internal Server Error.

If I check out the logs for the function all I can see is the following

*Syntax error in module '_optimize/serverless-nest-example-v2-dev-main/src/main': SyntaxError
async function
asyncIterator() {
^

SyntaxError: Unexpected token '*'
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)**

I honestly have no clue on how to proceed to solve this error. I have checked and my environment variable for connecting to the DB is properly set on my lambda, as well as the VPC configuration.

Any guidance or help is much appreciated...

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant