I ve been trying to deploy my GraphQl Apollo Server with nodejs on a Lambda function, on serverless offline it works perfectly, when i try to deploy it it fails with the error:
"Recoverable error occurred (write ECONNRESET), sleeping for ~5 seconds. Try 1 of 4"
Once the error appears, the console exits the proccess with no other message
I'm using Typescript and Webpack
What i ve done already:
- Verify all dependencies and types
- Warnings corrections
- Test it with serverless offline plug in and works perfectly on local
yml file:
service: apollo-sever-kisbel
custom:
webpack:
webpackConfig: ./webpack.config.js
includeModules: true
plugins:
- serverless-webpack
- serverless-offline
provider:
name: aws
runtime: nodejs12.x
stage: dev
functions:
graphql:
handler: lib/index.graphqlHandler
events:
- http:
path: "{proxy+}"
method: any
cors: true
Cheers!