-
Notifications
You must be signed in to change notification settings - Fork 4
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
TypeError when using venv-exec with the example http-in flow #40
Comments
Thank you @Zebble for your report to the issue! Since the sample was executable in older versions, I think the error occurred when the execution method was changed. If I assign msg.req and msg.res to flow.req and flow.res once and assign them after Python processing, the page is displayed in the browser. I will try to investigate the cause of the error. Here is the flow.
|
Thanks @404background ! Glad you were able to replicate the issue. I was able to work around the problem for now using something very similar to what you did but I just saved the entire msg to a flow variable, then re-defined msg before sending it to the python node. I then grabbed the msg flow variable before sending it to the http-out node. All seems to work OK for now. I did do some further troubleshooting, and looks like the circular reference is a socket which I'm unsure how to fix. I was going to take a look at how other nodes did it before you responded... |
Running node-red 4.0.5 in docker.
Using the example http-in (/url) results in an error in the venv node when triggered:
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Socket'
| property 'parser' -> object with constructor 'HTTPParser'
--- property 'socket' closes the circle
I've confirmed the pip command nodes work nicely and the virtual environment is created properly. Most everything else I've tested works well.
The text was updated successfully, but these errors were encountered: