I guess sometimes you just need to step away from the problem...
I found a solution, but it doesn't seem to answer the question, and I don't really like the it.
I changed the CherryPy server configuration to serve at 127.0.0.1 instead of localhost, and the node client started working.