Can't set Deluge as Sonarr download client

Had to upgrade Deluge and since then I’m having trouble setting it as the download client in Sonarr.

Getting variety of error messages whenever I “Test” in Sonarr including:
Unknown exception: Unable to write data to the transport connection: The socket has been shut down.
and
Unknown exception: The request was aborted: The request was canceled.: 'http://192.168.0.11:8112/json'
and
Unble to test connection: Error getting response stream (ReadDoneAsync2): ReceiveFailure: 'http://192.168.0.11:8112/json'

No clue what the issue is - could it be something with the newer version of Deluge (v2.0.3-2-201906121747-ubuntu18.04.1)

Not entirely helpful but I have no problem using Sonarr: 3.0.3.928-ls44 and the latest Deluge (same as you).

Maye share your compose or run command and a bit more about your setup.

Found what my issue was:
Had started Deluge and Sonarr within docker so I had to find the correct container IP address on the bridge to use (instead of just using my server IP of 192.168.0.11 when setting up the download client in Sonarr) by calling:
docker network inspect bridge

Hope this helps someone - it’s always easy when you know how…

qubeat,
while this will work short-term, the IP of a container isn’t static and it will change. You should instead use the container name, not the ip. IE; in sonarr, where it asks for the deluge name, put deluge. The only thing i would find concerning is that sonarr should use bridge and deluge should use host so sonarr SHOULD be communicating with deluge via your server ip.

anyone coming here, do not use the above solution.