tybug / ossapi

The definitive python wrapper for the osu! api.
https://tybug.github.io/ossapi/
GNU Affero General Public License v3.0
82 stars 18 forks source link

Retry `requests` / `aiohttp`-level errors #62

Open cocoon333 opened 1 year ago

cocoon333 commented 1 year ago

Calling user on async client causes these two errors sometimes: image image

Code for calling get_user: image

Errors often result in unclosed client sessions

tybug commented 1 year ago

please post the full stacktrace for both errors

cocoon333 commented 1 year ago

full stack trace: image

tybug commented 1 year ago

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.