spl0k / supysonic

Supysonic is a Python implementation of the Subsonic server API.
https://supysonic.readthedocs.io
GNU Affero General Public License v3.0
259 stars 57 forks source link

ValueError: badly formed hexadecimal UUID string in getAlbum.view #256

Closed ogarcia closed 11 months ago

ogarcia commented 1 year ago

When making a request to getAlbum.view, the Supysonic always gives ValueError: badly formed hexadecimal UUID string response (regardless of the id).

Sample request:

curl https://server.url.example/rest/getAlbum.view?id=1053&u=user&c=Ultrasonic&f=json&v=1.12.0&p=enc:encondedpass

Response:

{"subsonic-response":{"error":{"code":0,"message":"ValueError: badly formed hexadecimal UUID string"},"status":"failed","version":"1.12.0"}}

Thinking it might be a problem with the database I recreated it from scratch but the problem persists.

Could there be something wrong with that endpoint?

spl0k commented 11 months ago

Except for folders all ids are UUIDs, you're passing an integer in your sample request. How are you retrieving it? My guess is you're mixing endpoints for tag-based browsing with data coming from folder-based endpoints.

ogarcia commented 11 months ago

Right @spl0k , sorry for the noise, it was our mistake.

That's what you said, we were using folder navigation but then asking for an album in tag navigation.