Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple music failures- "Request failed with status code 403" #680

Closed
muetex opened this issue Jul 15, 2024 · 6 comments
Closed

Apple music failures- "Request failed with status code 403" #680

muetex opened this issue Jul 15, 2024 · 6 comments

Comments

@muetex
Copy link

muetex commented Jul 15, 2024

Using latest docker image, any apple music request fails to get the audio stream with a 403 forbidden.

Here is an example trace, from sample usage provided in the readme:

sudo docker run -it --rm -v ./mtr:/data freyrcli/freyrjs https://music.apple.com/us/album/im-sorry-im-not-sorry-ep/1491795443

...

freyr - (c) Miraculous Owonubi <[email protected]>
------------------------------------------------------
[•] Initializing config file...[done]
Checking directory permissions...[done]
[https://music.apple.com/us/album/im-sorry-im-not-sorry-ep/1491795443]
 [•] Identifying service...[Apple Music]
 [•] Checking authentication...[unauthenticated]
 [Apple Music Login]
  [•] Logging in...[done]
 Detected [album]
 Obtaining album metadata...[done]
  ➤ Album Name: I'm Sorry, I'm Not Sorry
  ➤ Artist: Sody
  ➤ Tracks: 4
  ➤ Type: Album
  ➤ Year: 2020
  ➤ Genres: Singer/Songwriter, Music
 [•] Collating [I'm Sorry, I'm Not Sorry]...
  [•] Inquiring tracks...[done]
   • [01 What We Had]
      | ➤ 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 Reason To Stay]
      | ➤ 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]
   • [04 Love's a Waste]
      | ➤ 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]
   • [03 Nothing Ever Changes]
      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...[success, found 1 source]
      | ➤ 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 What We Had [apple_music:track:1491795452] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
  • [✕] 02 Reason To Stay [apple_music:track:1491795455] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
  • [✕] 03 Nothing Ever Changes [apple_music:track:1491795607] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
  • [✕] 04 Love's a Waste [apple_music:track:1491795614] (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: [13.6s]
 [•] Total queries: [01]
 [•] Total tracks: [04]
     » Skipped: [00]
     ✓ Passed:  [00]
     ✕ Failed:  [04]
 [•] 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
===============================
@muetex muetex closed this as completed Jul 15, 2024
@muetex
Copy link
Author

muetex commented Jul 15, 2024

Closing as a VPN issue- youtube is blocking my client
Whoops!

@remadex
Copy link

remadex commented Jul 16, 2024

Hi,

I've also this issue 😥 But don't have any running vpn.
@muetex do you have an advice to avoid this error 403 ?

Thanks !!

@miraclx
Copy link
Owner

miraclx commented Jul 16, 2024

do you have an advice to avoid this error 403 ?

@remadex, does youtube.com work where you are?

@remadex
Copy link

remadex commented Jul 16, 2024

@miraclx yes, it's working and just in case, i'm from Belgium

@miraclx
Copy link
Owner

miraclx commented Jul 20, 2024

Let's carry this over to #681.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@miraclx @remadex @muetex and others