python-apps icon indicating copy to clipboard operation
python-apps copied to clipboard

When dealing with JSON in Python, not doing json.dumps at the end may fail

Open frikky opened this issue 2 years ago • 0 comments

In the "Execute Python" function, when JSON-like data is sent out, it is added to the "message" field. This leads it to LOOKING like it's valid JSON on the Javascript (frontend) side, but it is not valid on the Python side due to... something.

Find out what that something is.

Node 1 (execute python): print([{"hello": "there"}])

Node 2 (repeater): $node_1.#.hello

This may look good in the UI, but will fail in Python. This is most likely an App SDK issue.

frikky avatar Nov 02 '23 11:11 frikky