Skip to content

Async Client? #25

Open
Open
@cedricbastin

Description

@cedricbastin

This sample code doesn't work in my AWS Lambda:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions