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.
Unknown exception: The request was aborted: The request was canceled.: ''
Unble to test connection: Error getting response stream (ReadDoneAsync2): ReceiveFailure: ''

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: and the latest Deluge (same as you).

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