Skip to content

Commit fe7b6d8

Browse files
committed
wiplink store: On rate-limit error in poll, back off and retry
This covers a particular case of 946.
1 parent 30b5ed1 commit fe7b6d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/model/store.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,11 @@ class UpdateMachine {
977977
case Server5xxException():
978978
shouldReportToUser = true;
979979

980+
case ZulipApiException(httpStatus: 429):
981+
case ZulipApiException(code: 'RATE_LIMIT_HIT'):
982+
// TODO(#946) handle rate-limit errors more generally, in ApiConnection
983+
shouldReportToUser = true;
984+
980985
default:
981986
rethrow;
982987
}

0 commit comments

Comments
 (0)