You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: