Giter VIP home page Giter VIP logo

Comments (6)

danieleorler avatar danieleorler commented on July 27, 2024 1

@srisub-amzn, I think the code works just fine, I was only using a variation of the function

postDocumentToES(doc, context) 

doc should be a string but I was providing an object, which the signer cannot sign

from amazon-elasticsearch-lambda-samples.

srisub-amzn avatar srisub-amzn commented on July 27, 2024

Can you elaborate on what you were trying to do?
And, is this during ingestion from Kinesis or from S3?

from amazon-elasticsearch-lambda-samples.

danieleorler avatar danieleorler commented on July 27, 2024

@srirammoorthyziffity I had the same problem, the solution (for me) was to "JSON.stringify" the document I want to save.

from amazon-elasticsearch-lambda-samples.

srisub-amzn avatar srisub-amzn commented on July 27, 2024

@danieleorler, thanks for pitching in. Could you provide some details on when this problem occurs, so that I can check and fix the code? Thank you.

from amazon-elasticsearch-lambda-samples.

thesmart avatar thesmart commented on July 27, 2024

I would have assumed what @danieleorler assumed -- that AWS.HttpRequest would take an Object and not a json String. Reading this saved me some time.

from amazon-elasticsearch-lambda-samples.

anjushetty avatar anjushetty commented on July 27, 2024

I am seeing the same issue even after JSON.stringify doc, please suggest me if anything else need to take care?

from amazon-elasticsearch-lambda-samples.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.