dmzoneill / lidarr-youtube-downloader

Lidar youtube downloader
Apache License 2.0
44 stars 10 forks source link

ConnectionError #18

Closed HeisenbergK closed 11 months ago

HeisenbergK commented 11 months ago

Hello,

I get the following error when trying to use it (with the exact instructions on the README, using lidarr on a local docker): requests.exceptions.ConnectionError: HTTPConnectionPool(host='lidarr', port=8686): Max retries exceeded with url: /api/v1/wanted/missing?page=0&pageSize=50&sortDirection=descending (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x7f23f864fbb0>: Failed to resolve 'lidarr' ([Errno -2] Name or service not known)"))

If I change the host name to localhost, instead of the container name, I get: requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8686): Max retries exceeded with url: /api/v1/wanted/missing?page=0&pageSize=50&sortDirection=descending (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ffbb267bbb0>: Failed to establish a new connection: [Errno 111] Connection refused'))

I can see lidarr on my browser at http://localhost:8686 and from other containers (e.g. prowlarr) at http://lidarr:8686.

Any idea how to fix it?

HeisenbergK commented 11 months ago

Solved it by adding --network={the docker network name for the lidarr container}.