ossapi
ossapi copied to clipboard
Retry `requests` / `aiohttp`-level errors
Calling user on async client causes these two errors sometimes:

Code for calling get_user:

Errors often result in unclosed client sessions
please post the full stacktrace for both errors
full stack trace:

Tempted to say this is "not our problem" in the absence of a reliable repro case, given the message implies this is osu-web side.
Likely the best we can do here is provide an automatic retry mechanism for network errors.