Skip to content

HTTPError: 500 Server Error: Internal Server Error not handled gracefully #558

@cserl

Description

@cserl

You must use the search before you create an issue!

  • I did use the search, I promise!

What happened?

48 occurrences of Server Error: Internal Server Error during a longer test runtime. See one example below.

Fix idea: limited retries with exponential backoff and fallback logic; surface a clearer user message?

Version App

v0.26.7

What operating system do you use?

Linux

Version OS

Ubuntu 24.04.3 LTS

Relevant log output

2025-09-29 23:26:41 > �[32mNext download will start in 4.5 seconds.
2025-09-29 23:26:43 > �[31mSomething went wrong. Skipping 'Artist name - Album name'.
2025-09-29 23:26:43 Traceback (most recent call last):
2025-09-29 23:26:43   File "/home/admin/tidal-dl-ng-env/lib/python3.12/site-packages/tidal_dl_ng/download.py", line 772, in _get_stream_info
2025-09-29 23:26:43     media_stream = media.get_stream()
2025-09-29 23:26:43                    ^^^^^^^^^^^^^^^^^^
2025-09-29 23:26:43   File "/home/admin/tidal-dl-ng-env/lib/python3.12/site-packages/tidalapi/media.py", line 443, in get_stream
2025-09-29 23:26:43     request = self.requests.request(
2025-09-29 23:26:43               ^^^^^^^^^^^^^^^^^^^^^^
2025-09-29 23:26:43   File "/home/admin/tidal-dl-ng-env/lib/python3.12/site-packages/tidalapi/request.py", line 153, in request
2025-09-29 23:26:43     request.raise_for_status()
2025-09-29 23:26:43   File "/home/admin/tidal-dl-ng-env/lib/python3.12/site-packages/requests/models.py", line 1026, in raise_for_status
2025-09-29 23:26:43     raise HTTPError(http_error_msg, response=self)
2025-09-29 23:26:43 requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api.tidal.com/v1/tracks/251764958/playbackinfopostpaywall?sessionId=DELETED&countryCode=XY&limit=10000&playbackmode=STREAM&audioquality=HI_RES_LOSSLESS&assetpresentation=FULL
2025-09-29 23:26:43 > �[32mNext download will start in 3.5 seconds.�[0m
2025-09-29 23:26:46 > Downloaded item 'Artist name - Album name'.

Your settings

{
    "skip_existing": true,
    "lyrics_embed": true,
    "lyrics_file": false,
    "video_download": false,
    "download_delay": true,
    "download_base_path": "/home/admin/smb4k/ABC/Defghi/Jklmn",
    "quality_audio": "HI_RES_LOSSLESS",
    "quality_video": "480",
    "format_album": "Albums/{album_artist} - {album_title}{album_explicit}/{track_volume_num_optional}{album_track_num}. {artist_name} - {track_title}{album_explicit}",
    "format_playlist": "Playlists/{playlist_name}/{list_pos}. {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": "/usr/bin/ffmpeg",
    "metadata_cover_dimension": "origin",
    "metadata_cover_embed": true,
    "cover_album_file": true,
    "extract_flac": true,
    "downloads_simultaneous_per_track_max": 20,
    "download_delay_sec_min": 3.0,
    "download_delay_sec_max": 5.0,
    "album_track_num_pad_min": 1,
    "downloads_concurrent_max": 5,
    "symlink_to_track": false,
    "playlist_create": false,
    "metadata_replay_gain": true,
    "metadata_write_url": true
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions