tidal-dl-ng icon indicating copy to clipboard operation
tidal-dl-ng copied to clipboard

[Bug] Tidal will occasionally HTTPSConnectionPool Read timed out

Open motlaghreyhan opened this issue 10 months ago • 6 comments

What happened?

Some Tidal requests seems to time out occasionally which kills tidal-dl-ng. Simply re-running the script will generally work to download the file.

For large batch downloads of many albums, it would be very helpful to have it retry a few times before failing, maybe with a higher wait period in between tracks.

Version App

latest-master

What operating system are you seeing the problem on?

None

Relevant log output

log.txt (too large for github)

Your settings

{"skip_existing": "exact", "lyrics_embed": false, "lyrics_file": true, "video_download": false, "download_delay": true, "download_base_path": "/tidal/", "quality_audio": "HI_RES_LOSSLESS", "quality_video": "480", "format_album": "{album_artist}/{album_title} [{album_year}]/CD{track_volume_num}/{album_track_num} - {artist_name} - {track_title}", "format_playlist": "Playlists/{playlist_name}/{artist_name} - {track_title}", "format_mix": "Mix/{mix_name}/{artist_name} - {track_title}", "format_track": "{album_artist}/{album_title} [{album_year}]/CD{track_volume_num}/{album_track_num} - {artist_name} - {track_title}", "format_video": "Videos/{artist_name} - {track_title}{track_explicit}", "video_convert_mp4": false, "path_binary_ffmpeg": "", "metadata_cover_dimension": "1280"}

motlaghreyhan avatar Apr 21 '24 08:04 motlaghreyhan

Thank you for this report. I couldn't reproduce this error so far. Did this happen more often with the same album / other tracks? Are you sure, that you have not had any issues with your internet connection?

I mean, I could implement some retries next to the timeout, but if this was caused due to an error on your side, retries probably wouldn't help...

exislow avatar Apr 21 '24 17:04 exislow

I'm not sure about any certain album or track, I've been testing everything with the same beatles abbey road album. I was holding off doing large downloads with your tool until most of my consistent errors went away. Now issue 91 and 92 are fixed, I'll run it some more and see if I run into this issue again.

I really doubt it's my internet, I'm on ethernet with fiber and the connection is good, but I suppose it's possible. tidal-dl never exhibited this, but I've had it happen 2-3 times just while testing with tidal-dl-ng.

motlaghreyhan avatar Apr 21 '24 20:04 motlaghreyhan

It happened again on the same album log (1).txt, I tried it again after that (in a clean directory, deleting all previously downloaded files), and it downloaded successfully. I tried another really long max bitrate album log (2).txt, and failed at some point as well.

motlaghreyhan avatar Apr 21 '24 23:04 motlaghreyhan

Happened here as well:

ConnectionError: HTTPSConnectionPool(host='sp-ad-fa.audio.tidal.com', port=443): Read timed out.

thr-4 avatar Apr 23 '24 11:04 thr-4

@thr-4 this is of really no help :-/ Please provide logs and your config.

exislow avatar Apr 23 '24 20:04 exislow

@motlaghreyhan I have downloaded this (https://tidal.com/browse/album/118390427) twice in a row with your config. Still cannot re-produce your error...

exislow avatar Apr 23 '24 20:04 exislow