I was wondering why one of my workflows stopped working after updating to KNIME 5.3.2 and after a quick look I realized the POST Request Node does not work anymore for me.
So I did some testing with the version I had used before (4.7.0) and that worked fine. So either KNIME version 5.3.2 has a bug, or I am missing something crutial.
Both the preconfigured Node from my workflow and the unconfigured node, straight from the Node Repository do not seem to be able to connect to any server.
As I didn’t find any discussion about this specific problem while browsing the forum, I thought why not ask myself if others have the same problem as I have.
java.net.BindException: This is a type of exception that occurs when a program attempts to bind a socket to a local address and port, but the system prevents this because the requested address is not available or the port is already in use.
Cannot assign requested address: This specific error message usually occurs when the IP address you’re trying to bind to is not available on the local machine, or there is an issue with the routing table that prevents the connection.
I tried to reproduce your issue in 5.3.2, but I did not get this error. As prashant7526 said, this error indicates that your machine is running out of local ports to make connections through (originating from REST nodes).
Also, as prashant7526 mentioned, maybe you can share your KNIME network preferences under “Preferences > General > Network Connections”.
Do POST nodes fail for you every single time - or are failures random/unpredictable?
Are you performing multiple requests at once? Either by using multiple REST nodes, or a table input with the “Concurrency” setting in the node dialog set to a value > 1.
And, lastly, do you have another network-facing application running concurrently? This may also reduce the availability of local ports.
As a fix or workaround (depending on your answers for the above), you can try to:
Avoid using multiple networking-facing applications concurrently.
Try reducing the number of concurrent requests in the KNIME AP.
Increase the Java property http.maxConnections in the “knime.ini” file, for example by adding the line -Dhttp.maxConnections=50.