Add date normalization methods to ForexRateApiService and handle additional error code in RentController
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -386,6 +386,7 @@ class RentController extends ChangeNotifier {
|
||||
} catch (err) {
|
||||
final errorText = err.toString();
|
||||
if (errorText.contains('429') ||
|
||||
errorText.contains('104') ||
|
||||
errorText.toLowerCase().contains('rate_limit_reached')) {
|
||||
pausedByRateLimit = true;
|
||||
_errorMessage =
|
||||
|
||||
Reference in New Issue
Block a user