guilhermesad / rspotify

A ruby wrapper for the Spotify Web API
MIT License
717 stars 290 forks source link

Fix issue that has popped up with play/pause #264

Closed mattdrewitt closed 2 months ago

mattdrewitt commented 2 months ago

For some reason calling play/pause on the player has started returning what appears to be an id, or some other hashed value.

This causes a JSON parsing exception. I struggled to find any documentation on this change, but for the time being, I caught the error and simply return the raw body so at least it doesn't error.

At the moment nothing seems to be done with this response, so hopefully this is enough for now. It at least makes the actions work without causing errors stopping execution