Edit: Before looking into other things, ensure that your AWS WAF rule allows request bodies of at least the size of the document. Otherwise you’ll get 403.
Same code working fine with SyncGateway 2.8
And what is it not working with?
Request response is 403 Forbidden. GET is working as expected.
Does the user have permission to write to the bucket (DB_NAME)?
if (error) throw new Error(error);
console.log(response.body);
});
And what is response.body? What is error?
Sometimes it’s easier to figure out the diagnostic with “curl -v …”
If you have an Enterprise license, you can open an issue at support.couchbase.com