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

"Failed: Invalid Query" when trying to download a playlist #530

Closed
SillyDerps opened this issue Jun 26, 2023 · 12 comments
Closed

"Failed: Invalid Query" when trying to download a playlist #530

SillyDerps opened this issue Jun 26, 2023 · 12 comments

Comments

@SillyDerps
Copy link

When trying to download a playlist it shows that is an invalid query and downloads no songs
It shows during the "Identifying Service" stage

@SillyDerps
Copy link
Author

SillyDerps commented Jun 26, 2023

I found a workaround but now it shows error 401
[•] 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

@miraclx
Copy link
Owner

miraclx commented Jun 26, 2023

Can you include the full logs?

@SillyDerps
Copy link
Author

SillyDerps commented Jun 26, 2023

    ____
   / __/_______  __  _______
  / /_/ ___/ _ \/ / / / ___/
 / __/ /  /  __/ /_/ / /
/_/ /_/   \___/\__, /_/
              /____/ v0.9.0

freyr - (c) Miraculous Owonubi <omiraculous@gmail.com>
------------------------------------------------------
Checking directory permissions...[done]
[apple_music:playlist:p.06aW30Ps0J9l0Md]
 [•] 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
============ Stats ============
 [•] Runtime: [666ms]
 [•] 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
===============================

The pasting the link didn't work so I tried doing the URI

@miraclx
Copy link
Owner

miraclx commented Jun 26, 2023

Looks like you're using the 0.9.0 version. Version 0.10.0 will be released in the next few days, but you can force the installation of the latest version of the live code. It should show version 0.9.1:

npm install miraclx/freyr-js

or

yarn global add miraclx/freyr-js

@SillyDerps
Copy link
Author

Should it still say '0.9.0'? I used the npm command and it showed that it installed correctly

@miraclx
Copy link
Owner

miraclx commented Jun 26, 2023

What it should say

freyr --version
v0.9.1

@SillyDerps
Copy link
Author

it still shows v0.9.0

@miraclx
Copy link
Owner

miraclx commented Jun 26, 2023

In that case, uninstall freyr and reinstall with the command I mentioned above.

@SillyDerps
Copy link
Author

is there a command or should I find the files and delete them?

@miraclx
Copy link
Owner

miraclx commented Jun 26, 2023

npm uninstall freyr

@SillyDerps
Copy link
Author

still shows 0.9.0
Ill wait for 0.10.0, appreciate the help though!

@redsplash2
Copy link

I had that problem and resolved it as such:
Uninstalled freyr from docker and npm
Updated npm
Installed freyr-js [npm install miraclx/freyr-js] so i had the latest version 0.9.1
opened a new terminal session and ran it via npx [npx freyr get {track}]
it passed the 401 error and completed successfuly

It worked fine althought i've seen that when you extract an album from apple music at least the metadata is applied on the first track of the album only. I've downloaded a single track of the same album independently and the metadata applied successfuly.

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

3 participants