python-apps
python-apps copied to clipboard
When dealing with JSON in Python, not doing json.dumps at the end may fail
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.