Code Monkey home page Code Monkey logo

Comments (6)

scsaba avatar scsaba commented on August 13, 2024 2

Based on the Rekognition sample I managed to sort out this issue by adding a func before the DynamoDB node that sets the msg.Item to msg.payload. The Item field needs to be empty in the DynamoDB node.

It's working like a charm now :)

from node-red-contrib-aws.

Daniel-t avatar Daniel-t commented on August 13, 2024

Can you provide an example (export to clipboard), that way I can see exactly what you're trying to do.

from node-red-contrib-aws.

TibGva avatar TibGva commented on August 13, 2024

I guess I understand that QAnders is trying to use msg.payload to feed the nodes like dynamoDB, but he should be using msg.Item per example for Dynamodb. Example:

msg.Item={
"myattribute1": {"S": msg.payload.bla},
"myattribute2": {"S": "abc"},
"myattribute3" : {"S" : "def"}
};

from node-red-contrib-aws.

QAnders avatar QAnders commented on August 13, 2024

Problem seems to be that it is not possible to send a variable (=object value) as the message to SQS. It is sending the object/variable name as a string regardless of me trying to format it as JSON, msg.Item={} is the same, it is sent as a string, not as the object.

from node-red-contrib-aws.

Daniel-t avatar Daniel-t commented on August 13, 2024

It will be easier to help if you can provide an example (exported)

from node-red-contrib-aws.

scsaba avatar scsaba commented on August 13, 2024

I also have the same issue. I'd like to feed a DynamoDB node's PutItem operation with a dynamic input coming from another node. I did not manage to figure out what to put into the Item field. Whatever I enter it tries to parse as a string. E.g. if I put msg.payload, I would expect it to use the value of the msg.payload, but it tries to parse the "msg.payload" string itself, so I get an error:
"SyntaxError: Unexpected token m in JSON at position 0"

I think @QAnders has the same problem.

image

from node-red-contrib-aws.

Related Issues (20)

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.