Hi Jamulla,
We like more context to provide you with an answer. Please provide.
Meanwhile: "Connection refused" means you probably need to provide some authentication information.
Also: start with calling the API with some other tool like Postman.
I have no idea what you are trying to do, but this all looks a bit odd to me:
And last but not least: Please don't just dump a log entry here. Please next time actually ask a question, explain what you are trying to achieve, and what is going wrong. By just dumping a log entry, you probably won't receive the help you want.