librespot-java icon indicating copy to clipboard operation
librespot-java copied to clipboard

Spotify may have killed support for several hermes endpoints (502 error)

Open rashad opened this issue 2 years ago • 4 comments

Since yesterday, several endpoints returns a 502 error when using the player:

  • hm://artist/v1/{id}/desktop
  • hm://artist-identity-view/v2/profile and potentially others

I tried to run dump.sh from spotify-analyze to check what endpoints the current desktop client version is using but no luck to get a valid dump.pcap. I'm running librespot-java v1.6.3

Did you encounter similar issues recently ? Is there investigations ongoing somewhere where I could help ?

related : https://github.com/spicetify/spicetify-cli/pull/2425#issue-1764431733

rashad avatar Jun 20 '23 17:06 rashad

Yeh I get the same issue. Kinda sad because that endpoint was really good, it gave you everything about the artist without having to worry about pagination anywhere. Instead now we have to deal with the horrors of GraphQL. Well, it was fun while it lasted

christosk92 avatar Jun 20 '23 18:06 christosk92

You can have a look at what the new client uses with something like Telerik Fiddler. I highly suspect that the new client stopped using Hermes.

devgianlu avatar Jun 20 '23 18:06 devgianlu

Well it's kinda weird. The new client (And web player) have been using the GraphQL endpoint (queryArtistOverview) for kinda a long time now. But it's only now that they killed those specific endpoints. Maybe it's a high load query or something?

A lot of mercury endpoints still work (hm://metadata, hm://context-resolve, hm://keymaster/token etc), it's just the artist and album endpoints that stopped working. Which makes me suspect that they internally still use this protocol somewhere?

christosk92 avatar Jun 20 '23 18:06 christosk92

They probably have statistics of how many clients hit those endpoints and may have decided to remove then since they aren't used anymore. Librespot-java and other projects do not advertise themselves as the official client so those don't count.

devgianlu avatar Jun 20 '23 18:06 devgianlu