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 download error #91

Closed
nayomisa opened this issue Dec 13, 2021 · 12 comments · Fixed by #92, #191 or #399
Closed

Apple Music download error #91

nayomisa opened this issue Dec 13, 2021 · 12 comments · Fixed by #92, #191 or #399

Comments

@nayomisa
Copy link

The following occurs when trying to download from Apple Music:

 Obtaining album metadata...(failed: [Request failed with status code 401])
 [i] An error occurred while processing the query

Can this be fixed or do I have to log in somewhere with my Apple ID?

@miraclx
Copy link
Owner

miraclx commented Dec 13, 2021

Hi @nayomisa, could you include the full query to see if I'm able to reproduce this error on my end? Thanks.

@miraclx
Copy link
Owner

miraclx commented Dec 13, 2021

Likely related to #70, possibly the access key expired. I'll look into it.

@nayomisa
Copy link
Author

Hi @nayomisa, could you include the full query to see if I'm able to reproduce this error on my end? Thanks.

Yes, I have used the example and it has reproduced the same:

freyr https://music.apple.com/us/album/im-sorry-im-not-sorry-ep/1491795443
    ____
   / __/_______  __  _______
  / /_/ ___/ _ \/ / / / ___/
 / __/ /  /  __/ /_/ / /
/_/ /_/   \___/\__, /_/
              /____/ v0.2.0

freyr v0.2.0 - (c) Miraculous Owonubi <omiraculous@gmail.com>
-------------------------------------------------------------
Checking directory permissions...[done]
[https://music.apple.com/us/album/im-sorry-im-not-sorry-ep/1491795443]
 [•] Identifying service...[Apple Music]
 [•] Checking authentication...[authenticated]
 Detected [album]
 Obtaining album metadata...(failed: [Request failed with status code 401])
 [i] An error occurred while processing the query
========== Stats ==========
 [•] Runtime: [470ms]
 [•] Total queries: [01]
 [•] Total tracks: [00]
     » Skipped: [00]
     ✓ Passed:  [00]
     ✕ Failed:  [00]
 [•] Output directory: [.]
 [•] Cover Art: cover.png (640x640)
 [•] Total Output size: 0.00 B
 [•] Total Network Usage: 0.00 B
     ♫ Media: 0.00 B
     ➤ Album Art: 0.00 B
 [•] Output bitrate: 320k
===========================

Likely related to #70, possibly the access key expired. I'll look into it.

Thank you!

@miraclx
Copy link
Owner

miraclx commented Dec 13, 2021

Fixed in #92, merged into master.

@ylkcy
Copy link

ylkcy commented Jun 8, 2022

It seems that the access key has expired agin.

@SpinningK
Copy link

It seems that the access key has expired agin.

same problem

@miraclx
Copy link
Owner

miraclx commented Jun 8, 2022

Yeah, the tests caught it.

https://github.com/miraclx/freyr-js/runs/6784704919?check_suite_focus=true

I'll push a patch.

@miraclx
Copy link
Owner

miraclx commented Jun 8, 2022

Fixed in #191, merged into master.

@miraclx
Copy link
Owner

miraclx commented Dec 9, 2022

Looks like the access key expired again. https://github.com/miraclx/freyr-js/actions/runs/3634573652/jobs/6132797647

  │  Obtaining track metadata...(failed: [Error: Request failed with status code 401
  │     at ResourceClient.<anonymous> (/freyr/node_modules/@yujinakayama/apple-music/dist/resourceClient.js:57:23)
  │     at Generator.next (<anonymous>)
  │     at fulfilled (/freyr/node_modules/@yujinakayama/apple-music/dist/resourceClient.js:5:58)
  │     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]) 

@miraclx miraclx reopened this Dec 9, 2022
@The-Equal
Copy link

I think I have a similar problem?

 [•] Identifying service...[Apple Music]
 [•] Checking authentication...[authenticated]
 Detected [playlist]
 Obtaining playlist metadata...(failed: [Request failed with status code 401])
 [i] An error occurred while processing the query

Sorry, I'm quite new to this and I get an error during the start of the command.

@miraclx
Copy link
Owner

miraclx commented Dec 17, 2022

@The-Equal, sorry about that, #399 should fix it.

@slezercc
Copy link

slezercc commented Apr 9, 2023

Getting the same issue.
image

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