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

API Endpoint url giving "internal server error" message #11

Open
mtrivedi09 opened this issue Oct 12, 2021 · 0 comments
Open

API Endpoint url giving "internal server error" message #11

mtrivedi09 opened this issue Oct 12, 2021 · 0 comments

Comments

@mtrivedi09
Copy link

After following all the steps for this project when I run the stack API endpoint URL i get the following message:
{"message": "Internal server error"}

Since i am new to cloud computing (AWS, pulumi, etc) i am not sure where the problem lies.

My infrastructure preview was slightly different from the instructions ss as below:
Screen Shot 2021-10-12 at 12 48 09 PM

Checking the logs in cloudwatch i came across the following error:

2021-10-12T16:03:44.361Z 1605df3c-6d01-418b-9df1-7b863f2e3087 ERROR Invoke Error {
"errorType": "Error",
"errorMessage": "Package subpath './dist/js/index.js' is not defined by "exports" in /var/task/node_modules/@turf/helpers/package.json",
"code": "ERR_PACKAGE_PATH_NOT_EXPORTED",
"stack": [
"Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/js/index.js' is not defined by "exports" in /var/task/node_modules/@turf/helpers/package.json",
" at throwExportsNotFound (internal/modules/esm/resolve.js:299:9)",
" at packageExportsResolve (internal/modules/esm/resolve.js:522:3)",
" at resolveExports (internal/modules/cjs/loader.js:424:36)",
" at Function.Module._findPath (internal/modules/cjs/loader.js:464:31)",
" at Function.Module._resolveFilename (internal/modules/cjs/loader.js:802:27)",
" at Function.Module._load (internal/modules/cjs/loader.js:667:27)",
" at Module.require (internal/modules/cjs/loader.js:887:19)",
" at require (internal/modules/cjs/helpers.js:74:18)",
" at /var/task/__index.js:51:44",
" at Runtime.__f0 [as handler] (/var/task/__index.js:114:6)"
]
}

Doing some research on this error, it lead me to believe there is something wrong with the Lambda function created by the query (testing it on the lambda console also gives the error), but i cannot figure out what exactly. I have attached the function zip file for reference.
Any help regarding this would be appreciated. Thank you!

mapboxQuery4c238266-4f5effe-d1205eea-5cad-4a4e-bf08-5c48634bfdc0.zip

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