Comments (9)
The login and authentication process is now broken because Spotify introduced account whitelists for developer tokens.
Freyr comes pre-authenticated with a refresh and access token to an already whitelisted Spotify account.
If authentication validation ever fails, freyr will (based on the former logic) attempt to prompt the user for authentication. But that won't help when your account isn't whitelisted.
Two possible solutions here;
-
Delete the local, persisted config file.
$HOME/.config/FreyrCLI/d3fault.x4p
on Linux%home%\AppData\Roaming\FreyrCLI\d3fault.x4p
on Windows$HOME/Library/Preferences/FreyrCLI/d3fault.x4p
on macOS
Freyr will then recreate this on the next run. Using the pre-authenticated credentials.
-
Create your own developer token, and whitelist your own account.
from freyr-js.
The credentials in the previous releases have been revoked. While a new version is (yet) to be published, you can reinstall freyr from source.
npm install miraclx/freyr-js
from freyr-js.
This solution didn't work for me, I still get
[•] Migrating config file to v0.9.1...[done]
Checking directory permissions...[done]
[https://open.spotify.com/album/50N77Mz3phlzDRq69t5qhM]
[•] Identifying service...[Spotify]
[•] Checking authentication...[unauthenticated]
[Spotify Login]
[•] Logging in...(failed: [An authentication error occurred while communicating with Spotify's Web API.
Details: invalid_client Invalid client.])
[•] Attempting to open [ http://localhost:36346 ] within browser...[done]
[•] Awaiting user authentication...
Then it just hangs at "Awaiting user authentication".
from freyr-js.
It worked for me thanks. Instead of downloading from npm or docker I just cloned the repo and installed all from source
from freyr-js.
It worked for me thanks. Instead of downloading from npm or docker I just cloned the repo and installed all from source
Do you mean cloning the repo and building it with npm install and npm link? That didn't work for me either :( I still get the invalid_client error and no user authentication.
from freyr-js.
It worked for me thanks. Instead of downloading from npm or docker I just cloned the repo and installed all from source
Do you mean cloning the repo and building it with npm install and npm link? That didn't work for me either :( I still get the invalid_client error and no user authentication.
Just cloned the latest from the repo. Used 'npm install' and 'npm link'.
Apple & Deezer works, but Spotify still asking for user authentication.
from freyr-js.
After installing it via cloning the repo directly, it now works as expected for Spotify!
@fmsidoe @honanduc when running freyr did the version number change from v0.9.0 to v0.9.1? It may be that it didn't replace the previous installation properly. Try uninstalling freyr and then installing it via the repo.
from freyr-js.
@CunningCheese version 0.9.1, i always use the latest from the repo. Just used it again:
freyr spotify:track:5FNS5Vj69AhRGJWjhrAd01
____
/ __/_______ __ _______
/ /_/ ___/ _ \/ / / / ___/
/ __/ / / __/ /_/ / /
/_/ /_/ \___/\__, /_/
/____/ v0.9.1
freyr - (c) Miraculous Owonubi <[email protected]>
------------------------------------------------------
Checking directory permissions...[done]
[spotify:track:5FNS5Vj69AhRGJWjhrAd01]
[•] Identifying service...[Spotify]
[•] Checking authentication...[unauthenticated]
[Spotify Login]
[•] Logging in...(failed: [An authentication error occurred while communicating with Spotify's Web API.
Details: invalid_client Invalid client.])
[•] Attempting to open [ http://localhost:36346 ] within browser...[done]
[•] Awaiting user authentication...
from freyr-js.
@CunningCheese version 0.9.1, i always use the latest from the repo. Just used it again:
freyr spotify:track:5FNS5Vj69AhRGJWjhrAd01 ____ / __/_______ __ _______ / /_/ ___/ _ \/ / / / ___/ / __/ / / __/ /_/ / / /_/ /_/ \___/\__, /_/ /____/ v0.9.1 freyr - (c) Miraculous Owonubi <[email protected]> ------------------------------------------------------ Checking directory permissions...[done] [spotify:track:5FNS5Vj69AhRGJWjhrAd01] [•] Identifying service...[Spotify] [•] Checking authentication...[unauthenticated] [Spotify Login] [•] Logging in...(failed: [An authentication error occurred while communicating with Spotify's Web API. Details: invalid_client Invalid client.]) [•] Attempting to open [ http://localhost:36346 ] within browser...[done] [•] Awaiting user authentication...
@fmsidoe hmmmm, that's so strange. I've tried to replicate the problem with the v0.9.1 in the header, but no luck.
I've got two/three things you can maybe try:
(1) Cloning the repo and then manually editing the conf.json file and replacing the Spotify client secrets with the new ones
"clientId": "3ee9cf67e90346a191bfe735581a5aa0",
"clientSecret": "14206998339649fabd3c4057b84edbf2",
"refreshToken": "AQCbeNs5NiGfHa6He0BlOdoQwEIdo2lwBmefEvpvqVy8WlL2HV7rmGbb30_oaZHMDf9MgXtGjI0gV_QukL33PE8c2bGqJHeMqdHBUjKWhxOW19snJkGUiyxen8UvmDG-OP4"
then running npm install
and npm link
(2) this is probably not going to work, but if you previously connected your Spotify account to freyr when it redirected you to the browser: go to your Spotify Apps page and remove freyr from there, then it may possibly solve the issue.
(3) this is probably the most obvious one, but if you installed freyr from another source (like Docker) or manually built it or manually put its executable in $PATH, clear it out first, and then try installing it again. But you probably already did this.
from freyr-js.
Related Issues (20)
- I'm getting the error ' [An error occured while communicating with Spotify's Web API]' when trying to download my spotify playlist HOT 3
- how to solve the problem "failed: [Request failed with status code 401]) [i] An error occurred while processing the query" HOT 8
- An error code appears when req spotify and apple music
- Couldn't find package "async@^3.2.4" required by "freyr" on the "npm" registry. HOT 2
- Freyr (failed: Unexpected postprocessing error [Invalid typed array length: undefined]) HOT 4
- How to do i download manually from youtube? HOT 1
- Apple Music 401 Error HOT 1
- Giant File size HOT 3
- Very large file size HOT 6
- Freyr freezes consistently on certain albums/songs in [Embedding Metadata] stage HOT 9
- High memory usage HOT 1
- freyr downloading song that has gameplay audio HOT 2
- Help in running freyr HOT 3
- Error retrieving an Apple Music playlist HOT 7
- Working directory [.] doesn't exist HOT 4
- Downloaded files are all 2.15 GB in size HOT 5
- "Error while collecting source feeds..." HOT 7
- is it work on wsl? HOT 11
- I can't download my playlist. HOT 4
- Downloading spatial audio (atmos) tracks from apple music outputs stereo HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freyr-js.