-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python function cannot decode the script #12
Comments
having the same issue. The json of my node-red application is pretty simple (check below). All the app does is inject a (json)message ( {"id": "datapoint1", "value": "124.6215", "timestamp": "1601477603842888960" }), the python function should forward it, and the debug node should receive it:
|
We discovered this on Windows, could you potentially share your OS version? Anyway, on Windows 10 message passed to Python is prepended by 16 bytes. had no time to investigate, ripping out the first 16 bytes worked, however on Windows sending message back is not working. |
I can also confirm this on Windows 10 |
Ola, você pode dar um exemplo de como utilizar esse nó, não encontrei nada sobre o mesmo e tentei utilizar de todas as formas sem sucesso |
2 years later same issue......
|
I have created a node
in python function I have added simple code like:
But I am getting an error like:
s = s.decode(detect_encoding(s), 'surrogatepass') File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\encodings\utf_32_le.py", line 11, in decode return codecs.utf_32_le_decode(input, errors, True) UnicodeDecodeError: 'utf-32-le' codec can't decode bytes in position 16-19: code point not in range(0x110000)
Can anyone suggest any solution related to this? Like how can we use a python environment in node-red. Also I am using Anaconda environment how can I use it for node-red. I am using windows machine.
The text was updated successfully, but these errors were encountered: