miraclx / freyr-js

A tool for downloading songs from music streaming services like Spotify and Apple Music.
https://git.io/freyr-js
Apache License 2.0
1.48k stars 94 forks source link

Failed to get raw media stream #704

Open niveksan opened 3 weeks ago

niveksan commented 3 weeks ago

Hi, I'm running into the below issue.

[•] Initializing config file...[done]
Checking directory permissions...[done] 
[freyr]
 [•] Identifying service...(failed: Invalid Query)
[https://music.apple.com/de/album/oasis/1470146332]
 [•] Identifying service...[Apple Music]
 [•] Checking authentication...[unauthenticated]
 [Apple Music Login]
  [•] Logging in...[done] 
 Detected [album]
 Obtaining album metadata...[done] 
  ➤ Album Name: OASIS
  ➤ Artist: J Balvin & Bad Bunny
  ➤ Tracks: 8
  ➤ Type: Album
  ➤ Year: 2019
  ➤ Genres: Latin Urban, Musik, Latin
 [•] Collating [OASIS]...
  [•] Inquiring tracks...[done] 
   • [01 MOJAITA]
      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...[success, found 3 sources]
      | ➤ Awaiting audiofeeds...[done] 
      | [✓] Got album art 
      | [✕] Failed to get raw media stream [An error occurred while collecting and parsing information from the URL: Request failed with status code 403] 
   • [02 YO LE LLEGO]
      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...[success, found 4 sources]
      | ➤ Awaiting audiofeeds...[done] 
      | [✓] Got album art 
      | [✕] Failed to get raw media stream [An error occurred while collecting and parsing information from the URL: Request failed with status code 403] 
   • [03 CUIDAO POR AHÍ]
      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...[success, found 3 sources]
      | ➤ Awaiting audiofeeds...[done] 
      | [✓] Got album art 
      | [✕] Failed to get raw media stream [An error occurred while collecting and parsing information from the URL: Request failed with status code 403] 
   • [04 QUÉ PRETENDES]
      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...[success, found 4 sources]
      | ➤ Awaiting audiofeeds...[done] 
      | [✓] Got album art 
      | [✕] Failed to get raw media stream [An error occurred while collecting and parsing information from the URL: Request failed with status code 403] 
   • [05 LA CANCIÓN]
      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...[success, found 2 sources]
      | ➤ Awaiting audiofeeds...[done] 
      | [✓] Got album art 
      | [✕] Failed to get raw media stream [An error occurred while collecting and parsing information from the URL: Request failed with status code 403] 
   • [06 UN PESO (feat. Marciano Cantero)]
      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...[success, found 2 sources]
      | ➤ Awaiting audiofeeds...[done] 
      | [✓] Got album art 
      | [✕] Failed to get raw media stream [An error occurred while collecting and parsing information from the URL: Request failed with status code 403] 
   • [07 ODIO]
      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...[success, found 4 sources]
      | ➤ Awaiting audiofeeds...[done] 
      | [✓] Got album art 
      | [✕] Failed to get raw media stream [An error occurred while collecting and parsing information from the URL: Request failed with status code 403] 
   • [08 COMO UN BEBÉ (feat. Mr Eazi)]
      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...[success, found 3 sources]
      | ➤ Awaiting audiofeeds...[done] 
      | [✓] Got album art 
      | [✕] Failed to get raw media stream [An error occurred while collecting and parsing information from the URL: Request failed with status code 403] 
 [•] Download Complete
 [•] Embedding Metadata...
  • [✕] 01 MOJAITA [apple_music:track:1470146792] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
  • [✕] 02 YO LE LLEGO [apple_music:track:1470146793] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
  • [✕] 03 CUIDAO POR AHÍ [apple_music:track:1470146798] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
  • [✕] 04 QUÉ PRETENDES [apple_music:track:1470146805] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
  • [✕] 05 LA CANCIÓN [apple_music:track:1470146813] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
  • [✕] 06 UN PESO (feat. Marciano Cantero) [apple_music:track:1470147061] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
  • [✕] 07 ODIO [apple_music:track:1470147065] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
  • [✕] 08 COMO UN BEBÉ (feat. Mr Eazi) [apple_music:track:1470147066] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
[•] Collation Complete
============ Stats ============
 [•] Runtime: [16.8s]
 [•] Total queries: [02]
 [•] Total tracks: [08]
     » Skipped: [00]
     ✓ Passed:  [00]
     ✕ Failed:  [08]
 [•] Output directory: [.]
 [•] Total Output size: 0.00 B
 [•] Total Network Usage: 0.00 B
     ♫ Media: 0.00 B
     ➤ Album Art: 0.00 B
 [•] Output bitrate: 320k
===============================
niveksan commented 3 weeks ago

just to add. I'm using the docker version freyrcli/freyrjs:latest. Removing the image and pulling again won't work.

Instead pulling freyrcli/freyrjs-git:master solves the issue for now. Originally posted by @dannykorpan in https://github.com/miraclx/freyr-js/issues/681#issuecomment-2277330887