Skip to content

Commit 1df6266

Browse files
authored
Merge pull request #6 from tinymarsracing/patch-4
Added troubleshooting (from my experience)
2 parents 0ea188d + 03dda1a commit 1df6266

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,12 @@ Then you can issue an authenticated query:
236236

237237
Note that SAM unpacks the zip and reboots node for every single request, so you're going to suffer some startup latency with this.
238238

239+
### Troubleshooting
240+
241+
- If you receive serverless errors during `yarn deploy`, sometimes they can be resolved by just running the command another time. At the time of writing (20/Mar/2019), there is also a temporal error with Serverless v1.39: "Can't find graphql.zip file". If this happens downgrade to Serverless 1.38 by running `yarn global add [email protected]`.
242+
- If your serverless stack is created successfully, but then your endpoint throws some unhelpful errors, check the Cloudwatch logs of the Lambda. If you notice that the Lambda just times out, you might try checking the security settings of your DB instance. For example, if you use RDS with the "public" setting enabled, the public access might be restricted to your IP address. This would result in the schema being successfully generated during stack creation from your device, but the Lambda not having access obviously (without any error messages hinting you in that direction). You can fix that by setting the inbound settings of the security group of the RDS instance to all IPs (or even better by [making the Lambda access RDS from within the VCP](https://docs.aws.amazon.com/lambda/latest/dg/vpc-rds.html))
243+
- If you want to remove your stack from AWS and you try running `serverless remove`, you may run into errors. If that happens, you can go to Cloudformation in the AWS console and delete your stack there.
244+
239245
### Thanks
240246

241247
Improvements to PostGraphile's support for Lambda were sponsored by [Connecting Good](https://cogo.co/)

0 commit comments

Comments
 (0)