I hope this helps you . I have identified the problem! So the issue is that I am using a dev server url that doesn't have a domain entry on the global DNS server. So there are two possible solutions to this issue:
like below fixes the issue ECONNREFUSED means that the connection was attempted and the remote host port is not listening. Hence this can be caused because of: Is it a valid IP? check using ifconfig or ipconfig. u can try pinging the server.
Cassandra is not working on server - ConnectException: 'Connection refused (Connection refused)'