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

Always get "Lyrics for this track is not available on spotify" #39

Open
Nowaha opened this issue Mar 29, 2024 · 6 comments
Open

Always get "Lyrics for this track is not available on spotify" #39

Nowaha opened this issue Mar 29, 2024 · 6 comments

Comments

@Nowaha
Copy link

Nowaha commented Mar 29, 2024

It doesn't matter whether I use ?trackid= or ?url=, but with any track (even the ones given as an example in the readme), I always get:
{ "error": true, "message": "lyrics for this track is not available on spotify!" }

as a response, despite me having the lyrics on my other monitor.

Not sure if I did something wrong setup wise, I did retrieve my SP_DC minutes prior.

When running the CURL request verbose, I see this:

* Host spclient.wg.spotify.com:443 was resolved.
* IPv6: (none)
* IPv4: 35.186.224.25
*   Trying 35.186.224.25:443...
* Connected to spclient.wg.spotify.com (35.186.224.25) port 443
* ALPN: curl offers h2,http/1.1
* SSL certificate problem: unable to get local issuer certificate
* Closing connection

Setting curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); seems to be a fix, but I don't know if we should be doing this.

@d3nnyyy
Copy link

d3nnyyy commented Apr 6, 2024

any updates?

@Nowaha
Copy link
Author

Nowaha commented Apr 8, 2024

It's still happening, but perhaps it's a persistent SSL issue on Spotify's end (so maybe we HAVE to set CURLOPT_SSL_VERIFYPEER, which is also done in another request already)
image

@aviwad
Copy link

aviwad commented Apr 15, 2024

@akashrchandran will have to set a custom user-agent to his calls to Spotify servers. Spotify has started blocking the internal API calls with custom user-agents. I have implemented a similar thing at aviwad/LyricFever@682b60f as has raitonoberu/lyricsapi@659da1d

@aviwad
Copy link

aviwad commented May 6, 2024

Nevermind Spotify has started blocking free accounts once again. Damnit.

@akashrchandran
Copy link
Owner

Are you using an ad blocker or have you blacklisted spclient.wg.spotify.com in your hosts file, or something similar?

@Nowaha
Copy link
Author

Nowaha commented Jul 20, 2024

@akashrchandran I do not and have not, no

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

4 participants