ppy / osu-api

Public API for accessing osu! related data.
320 stars 16 forks source link

get_user returns completely empty response for existing user #239

Closed tybug closed 5 years ago

tybug commented 5 years ago

https://osu.ppy.sh/users/13312577 a valid user (by the name of Nightfreak1997), but the get_user endpoint returns an empty response. https://osu.ppy.sh/api/get_user_best?k=KEY&u=13312577 gives a simple [] as the json. I've had this issue break my scripts many times before - python json decoding doesn't play nice with empty responses - but never caught it in action or logged enough information to report it before. Hopefully this doesn't magically resolve itself in the time the issue is up.

tybug commented 5 years ago

Sorry, I think I royally messed up here, I've definitely encountered issues with the response before but this isn't related to that. Empty responses are totally valid and I was dealing with them incorrectly. Apologies for the false issue.