ersel / spotify-cli-mac

🎶 A nodejs app to control Spotify without leaving your terminal. 🎶
MIT License
178 stars 28 forks source link

Lyrics API not working, invalid token message #49

Open crisvtex opened 4 years ago

crisvtex commented 4 years ago

Hi there, first of all, great work! Loved your app :)

I'm trying to display lyrics, but even after adding Genius API Key, it shows the following message:

❯ sp ly
(node:57931) UnhandledPromiseRejectionWarning: Error: invalid_token: The access token provided is expired, revoked, malformed or invalid for other reasons.
    at /usr/local/lib/node_modules/spotify-cli-mac/node_modules/lyricist/node6/index.js:32:31
    at Generator.next (<anonymous>)
    at step (/usr/local/lib/node_modules/spotify-cli-mac/node_modules/lyricist/node6/index.js:3:191)
    at /usr/local/lib/node_modules/spotify-cli-mac/node_modules/lyricist/node6/index.js:3:361
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Something that came to my mind, is that Genius API requests APP WEBSITE URL and REDIRECT URI, but they're not mentioned in README, so I'm not sure how to follow on these.

Captura de Pantalla 2020-07-18 a la(s) 12 22 41

Also, I don't know if this is related, but everytime the spotify CLI command is issued, terminal logs this warning:

❯ sp info
(node:58240) Warning: Accessing non-existent property padLevels of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)

Thanks in advance, cheers!

ersel commented 4 years ago

@crisvtex sorry, I am no longer maintaining this library. Feel free to investigate further by cloning the repo and fiddling with the code yourself.