"Connection refused" occurs if the authentication/authorisation set on your request is incorrect.
So if "basic auth" is the auth type used, id confirm the username and password values as theyre likely to be wrong.
You need to confirm what authtype the endpoint youre trying to poke accepts and ensure the auth settings on your request has the correct config setup. Then the "connection refused" issue will be resolved.
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta