question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues deploying Serverless Framework (AWS Lambda)

See original GitHub issue

Deploying 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:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cristhianmarroquinsecommented, Jan 21, 2020

I have reproduced this issue when deploy to lambda this repo https://github.com/hellobuild/Issues-deploying-Serverless-AWS-Lambda

0reactions
pantharshit00commented, May 17, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found