exislow / tidal-dl-ng

TIDAL Media Downloader Next Generation! Up to HiRes Lossless / TIDAL MAX 24-bit, 192 kHz.
GNU Affero General Public License v3.0
398 stars 35 forks source link

[Bug] Tidal will occasionally HTTPSConnectionPool Read timed out #94

Closed motlaghreyhan closed 1 hour ago

motlaghreyhan commented 6 months ago

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"}
exislow commented 6 months ago

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...

motlaghreyhan commented 6 months ago

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 commented 6 months ago

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.

thr-4 commented 6 months ago

Happened here as well:

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

exislow commented 6 months ago

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

exislow commented 6 months ago

@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 commented 1 hour ago

Staled. Closed.