diff --git a/lib/api/api.dart b/lib/api/api.dart index 137a6f8..a77e1d7 100644 --- a/lib/api/api.dart +++ b/lib/api/api.dart @@ -63,8 +63,15 @@ Future getSessions(session) async { } Future getTransactions(session) async { - var req = await Dio() - .post('$host/transaction', queryParameters: {'session_token': session}); + var req = await Dio().post( + '$host/transaction', + queryParameters: {'session_token': session}, + options: Options( + validateStatus: (status) { + return status! < 500; + }, + ), + ); var res = req.data; return res; }