exislow/tidal-dl-ng

[Bug] HTTPError: 500 Server Error: Internal Server Error for url:

Opened this issue · 0 comments

What happened?

(python311) PS C:\Users> tdn dl https://tidal.com/browse/track/129701970?u
Let us check, if you are already logged in... Yep, looks good! You are logged in.
╭─────────────────────────────────── Download Progress ───────────────────────────────────╮
│ │
│ │
│ Item 'League of Legends - Star Guard' ⠴ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━ 75% │
│ │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────╯
╭─────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────╮
│ D:\Works\Anaconda3\envs\python311\Lib\site-packages\tidal_dl_ng\download.py:147 in download │
│ │
│ 144 │ │ │ │ │ │ # Create the request object with stream=True, so the content won │
│ 145 │ │ │ │ │ │ r = requests.get(url, stream=True, timeout=REQUESTS_TIMEOUT_SEC) │
│ 146 │ │ │ │ │ │ │
│ ❱ 147 │ │ │ │ │ │ r.raise_for_status() │
│ 148 │ │ │ │ │ │ │
│ 149 │ │ │ │ │ │ # Write the content to disk. If chunk_size is set to None th │
│ 150 │ │ │ │ │ │ for data in r.iter_content(chunk_size=block_size): │
│ │
│ ╭─────────────────────────────────────────────────────── locals ───────────────────────────────────────────────────────╮ │
│ │ block_size = None │ │
│ │ data = b'\x00\x00\x01Xmoof\x00\x00\x00\x10mfhd\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x01@traf\x00\x00\… │ │
│ │ f = <io.BufferedWriter │ │
│ │ name='C:\Users\LINXUA1\AppData\Local\Temp\tmpcfzwtxz1\db38f823-a211-4bd5-a9df-3f1714caee6… │ │
│ │ media = <tidalapi.media.Track object at 0x000001DE75FE6C10> │ │
│ │ media_name = "League of Legends - Star Guardian: Invasion - We'll Get them Next Time (From Lea"+25 │ │
│ │ p_task = 0 │ │
│ │ path_file = 'C:\Users\LINXUA
1\AppData\Local\Temp\tmpcfzwtxz1\db38f823-a211-4bd5-a9df-3f1714c'+5 │ │
│ │ progress_stdout = True │ │
│ │ progress_total = 4 │ │
│ │ r = <Response [500]> │ │
│ │ self = <tidal_dl_ng.download.Download object at 0x000001DE75BEB2D0> │ │
│ │ stream_manifest = <tidalapi.media.StreamManifest object at 0x000001DE75BE9D50> │ │
│ │ url = 'https://sp-ad-cf.audio.tidal.com/mediatracks/GisIAxInMzlmNTRlNDY4NjM1ZjgwMzMxOGM'+791 │ │
│ │ urls = [ │ │
│ │ │ 'https://sp-ad-cf.audio.tidal.com/mediatracks/GisIAxInMzlmNTRlNDY4NjM1ZjgwMzMxOGM'+791, │ │
│ │ │ 'https://sp-ad-cf.audio.tidal.com/mediatracks/GisIAxInMzlmNTRlNDY4NjM1ZjgwMzMxOGM'+791, │ │
│ │ │ 'https://sp-ad-cf.audio.tidal.com/mediatracks/GisIAxInMzlmNTRlNDY4NjM1ZjgwMzMxOGM'+791, │ │
│ │ │ 'https://sp-ad-cf.audio.tidal.com/mediatracks/GisIAxInMzlmNTRlNDY4NjM1ZjgwMzMxOGM'+791 │ │
│ │ ] │ │
│ │ urls_count = 4 │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\Works\Anaconda3\envs\python311\Lib\site-packages\requests\models.py:1024 in raise_for_status │
│ │
│ 1021 │ │ │ ) │
│ 1022 │ │ │
│ 1023 │ │ if http_error_msg: │
│ ❱ 1024 │ │ │ raise HTTPError(http_error_msg, response=self) │
│ 1025 │ │
│ 1026 │ def close(self): │
│ 1027 │ │ """Releases the connection back to the pool. Once this method has been │
│ │
│ ╭──────────────────────────────────────────────── locals ─────────────────────────────────────────────────╮ │
│ │ http_error_msg = '500 Server Error: Internal Server Error for url: https://sp-ad-cf.audio.tidal.co'+840 │ │
│ │ reason = 'Internal Server Error' │ │
│ │ self = <Response [500]> │ │
│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
HTTPError: 500 Server Error: Internal Server Error for url:
https://sp-ad-cf.audio.tidal.com/mediatracks/GisIAxInMzlmNTRlNDY4NjM1ZjgwMzMxOGM3ZDY0Zjk5ZTc3Y2FfNjIubXA0IiAdAACAQCACKhDEmsm
Yn5EoD7lryfyxmpBkMgUNAACgQQ/3.mp4?Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6Imh0dHBzOi8vc3AtYWQtY2YuYXVkaW8udGlkYWwuY29tL21
lZGlhdHJhY2tzL0dpc0lBeEluTXpsbU5UUmxORFk0TmpNMVpqZ3dNek14T0dNM1pEWTBaams1WlRjM1kyRmZOakl1YlhBMElpQWRBQUNBUUNBQ0toREVtc21ZbjV
Fb0Q3bHJ5Znl4bXBCa01nVU5BQUNnUVEvKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyNTAyNDE4MX19fV19&Signat
ure=MUODcl854USnVbm7cO0BCdJvgiaCvia2KASI1i-KLryVIGWzUBDwervuPmcBfXodKso1XObvxKQPMDMh8q9SC87V73JUv3CtOPXzpns-rfxKYeryIeXNWnL3
UEzyH4Z494GTdoV5u12v4GQskDIGIShmueDPaeWhaVVVxPfVO5j92swkfAn95XGtGZ03yD7BYkyj2u0atKvIcqWXIjAOo2qln-YTV1fFT6SFbFPXqpx7veHZJpN
fdOqcBC3fGVh52nhV88TStdBB4IlOdWd7M0a4cfY8Ig6xyfDrRdP-GrqiO
W-UtBGhHo501k4ye14hdOM4j-Nms3Kn2zeoVG8Q
&Key-Pair-Id=K14LZCZ9QUI
4JL

During handling of the above exception, another exception occurred:

╭─────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────╮
│ D:\Works\Anaconda3\envs\python311\Lib\site-packages\tidal_dl_ng\cli.py:197 in download │
│ │
│ 194 │ │ │ if media_type in [MediaType.TRACK, MediaType.VIDEO]: │
│ 195 │ │ │ │ download_delay: bool = bool(settings.data.download_delay and urls.index( │
│ 196 │ │ │ │ │
│ ❱ 197 │ │ │ │ dl.item( │
│ 198 │ │ │ │ │ media_id=item_id, media_type=media_type, file_template=file_template │
│ 199 │ │ │ │ ) │
│ 200 │ │ │ elif media_type in [MediaType.ALBUM, MediaType.PLAYLIST, MediaType.MIX, Medi │
│ │
│ ╭───────────────────────────────────────── locals ─────────────────────────────────────────╮ │
│ │ ctx = <click.core.Context object at 0x000001DE723D4B50> │ │
│ │ dl = <tidal_dl_ng.download.Download object at 0x000001DE75BEB2D0> │ │
│ │ download_delay = False │ │
│ │ file_template = 'Tracks/{artist_name} - {track_title}{track_explicit}' │ │
│ │ file_urls = None │ │
│ │ fn_logger = <tidal_dl_ng.helper.wrapper.LoggerWrapped object at 0x000001DE75BEA590> │ │
│ │ item = 'https://tidal.com/browse/track/129701970?u' │ │
│ │ item_id = '129701970' │ │
│ │ media_type = <MediaType.TRACK: 'track'> │ │
│ │ progress = <rich.progress.Progress object at 0x000001DE75FD93D0> │ │
│ │ progress_table = <rich.table.Table object at 0x000001DE72946CD0> │ │
│ │ settings = <tidal_dl_ng.config.Settings object at 0x000001DE75C03B10> │ │
│ │ urls = ['https://tidal.com/browse/track/129701970?u'] │ │
│ │ urls_pos_last = 0 │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\Works\Anaconda3\envs\python311\Lib\site-packages\tidal_dl_ng\download.py:262 in item │
│ │
│ 259 │ │ │ with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmp_path_dir │
│ 260 │ │ │ │ tmp_path_file = os.path.join(tmp_path_dir, str(uuid4())) │
│ 261 │ │ │ │ # Download media. │
│ ❱ 262 │ │ │ │ tmp_path_file = self._download(media=media, path_file=tmp_path_file) │
│ 263 │ │ │ │ │
│ 264 │ │ │ │ # Convert video from TS to MP4 │
│ 265 │ │ │ │ if isinstance(media, Video) and self.settings.data.video_convert_mp4: │
│ │
│ ╭───────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────╮ │
│ │ do_flac_extract = True │ │
│ │ download_delay = False │ │
│ │ extension_ignore = False │ │
│ │ file_exists = False │ │
│ │ file_extension = <AudioExtensions.FLAC: '.flac'> │ │
│ │ file_name_relative = "Tracks/League of Legends - Star Guardian Invasion - We'll Get them Next Time (Fr"+30 │ │
│ │ file_template = 'Tracks/{artist_name} - {track_title}{track_explicit}' │ │
│ │ media = <tidalapi.media.Track object at 0x000001DE75FE6C10> │ │
│ │ media_id = '129701970' │ │
│ │ media_type = <MediaType.TRACK: 'track'> │ │
│ │ path_media_dst = 'C:\Users\Linxuanhua\download\Tracks\League of Legends - Star Guardian Invasion -'+64 │ │
│ │ quality_audio = None │ │
│ │ quality_video = None │ │
│ │ self = <tidal_dl_ng.download.Download object at 0x000001DE75BEB2D0> │ │
│ │ tmp_path_dir = 'C:\Users\LINXUA1\AppData\Local\Temp\tmpcfzwtxz1' │ │
│ │ tmp_path_file = 'C:\Users\LINXUA
1\AppData\Local\Temp\tmpcfzwtxz1\db38f823-a211-4bd5-a9df-3f1714c'+5 │ │
│ │ uniquify = False │ │
│ │ video_download = True │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\Works\Anaconda3\envs\python311\Lib\site-packages\tidal_dl_ng\download.py:160 in _download │
│ │
│ 157 │ │ │ │ │ │ │ │ self.progress_gui.item.emit(self.progress.tasks[p_task]. │
│ 158 │ │ except HTTPError as e: │
│ 159 │ │ │ # TODO: Handle Exception... │
│ ❱ 160 │ │ │ self.fn_logger(e) │
│ 161 │ │ │
│ 162 │ │ if isinstance(media, Track) and stream_manifest.is_encrypted: │
│ 163 │ │ │ key, nonce = decrypt_security_token(stream_manifest.encryption_key) │
│ │
│ ╭─────────────────────────────────────────────────────── locals ───────────────────────────────────────────────────────╮ │
│ │ block_size = None │ │
│ │ data = b'\x00\x00\x01Xmoof\x00\x00\x00\x10mfhd\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x01@traf\x00\x00\… │ │
│ │ f = <_io.BufferedWriter │ │
│ │ name='C:\Users\LINXUA1\AppData\Local\Temp\tmpcfzwtxz1\db38f823-a211-4bd5-a9df-3f1714caee6… │ │
│ │ media = <tidalapi.media.Track object at 0x000001DE75FE6C10> │ │
│ │ media_name = "League of Legends - Star Guardian: Invasion - We'll Get them Next Time (From Lea"+25 │ │
│ │ p_task = 0 │ │
│ │ path_file = 'C:\Users\LINXUA
1\AppData\Local\Temp\tmpcfzwtxz1\db38f823-a211-4bd5-a9df-3f1714c'+5 │ │
│ │ progress_stdout = True │ │
│ │ progress_total = 4 │ │
│ │ r = <Response [500]> │ │
│ │ self = <tidal_dl_ng.download.Download object at 0x000001DE75BEB2D0> │ │
│ │ stream_manifest = <tidalapi.media.StreamManifest object at 0x000001DE75BE9D50> │ │
│ │ url = 'https://sp-ad-cf.audio.tidal.com/mediatracks/GisIAxInMzlmNTRlNDY4NjM1ZjgwMzMxOGM'+791 │ │
│ │ urls = [ │ │
│ │ │ 'https://sp-ad-cf.audio.tidal.com/mediatracks/GisIAxInMzlmNTRlNDY4NjM1ZjgwMzMxOGM'+791, │ │
│ │ │ 'https://sp-ad-cf.audio.tidal.com/mediatracks/GisIAxInMzlmNTRlNDY4NjM1ZjgwMzMxOGM'+791, │ │
│ │ │ 'https://sp-ad-cf.audio.tidal.com/mediatracks/GisIAxInMzlmNTRlNDY4NjM1ZjgwMzMxOGM'+791, │ │
│ │ │ 'https://sp-ad-cf.audio.tidal.com/mediatracks/GisIAxInMzlmNTRlNDY4NjM1ZjgwMzMxOGM'+791 │ │
│ │ ] │ │
│ │ urls_count = 4 │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: 'LoggerWrapped' object is not callable

Version App

v0.15.6

What operating system are you seeing the problem on?

None

Relevant log output

No response

Your settings

{"skip_existing": "exact", "lyrics_embed": true, "lyrics_file": false, "video_download": true, "download_delay": true, "download_base_path": "~/download", "quality_audio": "HI_RES_LOSSLESS", "quality_video": "1080", "format_album": "Albums/{album_artist} - {album_title}{album_explicit}/{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": "Tracks/{artist_name} - {track_title}{track_explicit}", "format_video": "Videos/{artist_name} - {track_title}{track_explicit}", "video_convert_mp4": false, "path_binary_ffmpeg": "C:\\Users\\Linxuanhua\\Desktop\\TIDAL-Downloader-NG\\ffmpeg-n7.0-latest-win64-gpl-7.0\\bin\\ffmpeg.exe", "metadata_cover_dimension": "1280", "extract_flac": true, "downgrade_on_hi_res": false}