Giter Club home page Giter Club logo

Comments (9)

miraclx avatar miraclx commented on September 6, 2024 2

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;

  1. 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.

  2. Create your own developer token, and whitelist your own account.

    https://developer.spotify.com/

from freyr-js.

miraclx avatar miraclx commented on September 6, 2024

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.

honanduc avatar honanduc commented on September 6, 2024

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.

JuandeJuni avatar JuandeJuni commented on September 6, 2024

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.

honanduc avatar honanduc commented on September 6, 2024

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.

fmsidoe avatar fmsidoe commented on September 6, 2024

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.

CunningCheese avatar CunningCheese commented on September 6, 2024

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.

fmsidoe avatar fmsidoe commented on September 6, 2024

@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 avatar CunningCheese commented on September 6, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.