spotify-cli-mac icon indicating copy to clipboard operation
spotify-cli-mac copied to clipboard

Lyrics API not working, invalid token message

Open crisvtex opened this issue 5 years ago • 1 comments

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!

crisvtex avatar Jul 18 '20 16:07 crisvtex

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

ersel avatar Jul 18 '20 20:07 ersel