Issues deploying Serverless Framework (AWS Lambda)
See original GitHub issueDeploying to AWS Lambda using Serverless, we are running into an issue when we call the API
Deployment finishes correctly. Graphiql comes up and shows me the generated schema, but calling any other operation (query/mutation) returns
Is this an issue with the library or are we doing something wrong. (running the latest preview version 19)
{
"errors": [
{
"message": "\nInvalid `photon.()` invocation in /var/task/node_modules/nexus-prisma/dist/builder.js:129:97\n\n\n\nundefined target=\"exit\" timestamp=\"2020-01-21T00:42:14.995Z\" fields={\"message\":\"127\"}",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"companies"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"exception": {
"stacktrace": [
"Error: ",
"Invalid `photon.()` invocation in /var/task/node_modules/nexus-prisma/dist/builder.js:129:97",
"",
"",
"",
"undefined target=\"exit\" timestamp=\"2020-01-21T00:42:14.995Z\" fields={\"message\":\"127\"}",
" at PhotonFetcher.<anonymous> (/var/task/node_modules/@prisma/photon/index.js:65:27)",
" at Generator.throw (<anonymous>)",
" at rejected (/var/task/node_modules/@prisma/photon/index.js:6:65)"
]
}
}
}
],
"data": null
}
Also, this comes up in the logs on Cloudwatch
errno: -2,
code: 'ENOENT',
syscall: 'mkdir'
}```
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Serverless and Deployment Issues - Paul Johnston - Medium
Deploying to the cloud is sometimes easy and sometimes hard. There are a number of things that need to be considered and a...
Read more >Issues · serverless/serverless - GitHub
Serverless Framework – Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more!
Read more >Troubleshoot deployment issues in Lambda
Deployment errors prevent the new version from being used and can arise from issues with your deployment package, code, permissions, or tools. When...
Read more >AWS Lambda Functions - Serverless Framework
Versioning Deployed Functions. By default, the framework creates function versions for every deploy. This behavior is optional, and can be turned off in...
Read more >AWS Lambda Guide - Serverless.yml Reference
Deployment bucket. Serverless Framework needs a S3 bucket to store artifacts for deploying. That bucket is automatically created and managed by Serverless, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have reproduced this issue when deploy to lambda this repo https://github.com/hellobuild/Issues-deploying-Serverless-AWS-Lambda
I am going to close this as its been over a month now and there is no activity here.
Please reply if you want us to take another look.