Closed G5dwe1 closed 6 months ago
Hi, can you run this again with SHOW_DEBUG_STACK=1
env set?
That is: SHOW_DEBUG_STACK=1 freyr <YOUR QUERY>
Where <YOUR QUERY>
is replaced by your query.
SHOW_DEBUG_STACK=1 freyr https://music.apple.com/us/album/24-hour-cinderella-full-spec-edition/1492268749?i=1492268750&ls
[1] 24749
download pycares-4.3.0 pycares-4.3.0.tar.gz storage
~ $ ____
/ __/_______ __ _______
/ /_/ ___/ _ \/ / / / ___/
/ __/ / / __/ /_/ / /
/_/ /_/ \___/\__, /_/
/____/ v0.10.1
freyr - (c) Miraculous Owonubi <omiraculous@gmail.com>
------------------------------------------------------
Checking directory permissions...[done]
[https://music.apple.com/us/album/24-hour-cinderella-full-spec-edition/1492268749?i=1492268750]
[•] Identifying service...[Apple Music]
[•] Checking authentication...[authenticated]
Detected [track]
Obtaining track metadata...(failed: [AppleMusicError: Request failed with status code 401
at ResourceClient.<anonymous> (/data/data/com.termux/files/home/.config/yarn/global/node_modules/@yujinakayama/apple-music/dist/resourceClient.js:57:23)
at Generator.next (<anonymous>)
at fulfilled (/data/data/com.termux/files/home/.config/yarn/global/node_modules/@yujinakayama/apple-music/dist/resourceClient.js:5:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
httpStatusCode: 401,
response: undefined
}])
[i] An error occurred while processing the query
============ Stats ============
[•] Runtime: [3.3s]
[•] Total queries: [01]
[•] Total tracks: [00]
» Skipped: [00]
✓ Passed: [00]
✕ Failed: [00]
[•] 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
===============================
This is fine, the access token for your version of freyr has expired. I've updated the source code, but I haven't cut a new version of freyr just yet.
Linked: https://github.com/miraclx/freyr-js/pull/610
I'll cut a new version in a bit.
Also, the original error seems to be related to this fixed issue - https://github.com/miraclx/freyr-js/commit/fc2925627736f2965fbd162e457cad62d366b49e
I experienced it myself as well and fixed it.
Once I cut a new version, it should be gone.
If you want to test it before the release, follow these instructions in the "build from source" dropdown on the README.md
git clone https://github.com/miraclx/freyr-js.git freyr
cd freyr
npm install
npm link