aws-samples / aws-samples/amazon-elasticsearch-lambda-samples

Async Client?

Open
#25 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
386
Forks
170
PR merge metrics
No merged PRs in 30d

Description

This sample code doesn't work in my AWS Lambda:
```js
var client = new AWS.NodeHttpClient();
console.log("client:", client)
// returns "client: {}"

client.handleRequest(req, null, function(httpResp) {
console.log("this never gets called")
}
```

This posts mentions something about an async Client but I'm not sure where to put the `await`?
https://stackoverflow.com/questions/60609426/aws-httpclient-handlerequest-is-not-working-in-aws-lambda

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.