diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2024-03-28 23:43:50 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-03-29 00:00:15 +0100 |
commit | 0b5069e600b6fbe72affed97f0b36ef923ba4072 (patch) | |
tree | f47eba1ab153648e6e24749bc89fb8dfb27286bb /_pytest/data/websocket/1485975458.87-message.json | |
parent | ec503d0935cbc171fbe7762a83c36a0e1160efa7 (diff) | |
download | wee-slack-0b5069e600b6fbe72affed97f0b36ef923ba4072.tar.gz |
Retry fetching users with fewer users on errors
Apparently it varies how many users can be fetched in one request with
the users.info method. I have had successful requests with 4096 users,
while some people have reported getting HTTP 500 when fetching 1000
users and one person got an error response with error `too_many_users`
when fetching 500 users.
So when we get either of those errors, reduce the number of users we
fetch in one request and try again until it works or the number of users
has been reduced to 1.
Fixes #924
Diffstat (limited to '_pytest/data/websocket/1485975458.87-message.json')
0 files changed, 0 insertions, 0 deletions