resolve issue with serverless-http package
Budget: $30 – $250 USD
the issue is described here: https://github.com/dougmoscrop/serverless-http/issues/256
I'm trying to use serverless-http to create a serverless deployment of pouchdb-server on top of AWS Lambda with Elastic Filesystem.
My solution is here: https://github.com/refacktor/pouchdb-aws-serverless
I'm currently able to get the standard PouchDB response with a curl -X GET ... and was able to create a database by using curl -X PUT https://.../db1.
But when I try to PUT a document with:
curl -X PUT https://XXXXXXXXX.execute-api.us-west-2.amazonaws.com/prod/db1/doc1 -d '{"hello":"world", "_id":"doc1"}'
I get:
{"error":"missing_id","reason":"_id is required for puts"}
My best guess here is that the PUT body is not getting forwarded by serverless-http, but I'm unsure how to troubleshoot further.
I'm trying to use serverless-http to create a serverless deployment of pouchdb-server on top of AWS Lambda with Elastic Filesystem.
My solution is here: https://github.com/refacktor/pouchdb-aws-serverless
I'm currently able to get the standard PouchDB response with a curl -X GET ... and was able to create a database by using curl -X PUT https://.../db1.
But when I try to PUT a document with:
curl -X PUT https://XXXXXXXXX.execute-api.us-west-2.amazonaws.com/prod/db1/doc1 -d '{"hello":"world", "_id":"doc1"}'
I get:
{"error":"missing_id","reason":"_id is required for puts"}
My best guess here is that the PUT body is not getting forwarded by serverless-http, but I'm unsure how to troubleshoot further.