Почему я получил DEADLINE_EXCEEDED
ошибку? Я установил 60 секунд. но максимальное время выполнения 5-7 секунд. в чем причина?
Ошибка
I/Choreographer(10325): Skipped 45 frames! The application may be doing too much work on its main thread.
I/Choreographer(10325): Skipped 160 frames! The application may be doing too much work on its main thread.
I/Choreographer(10325): Skipped 211 frames! The application may be doing too much work on its main thread.
I/Choreographer(10325): Skipped 75 frames! The application may be doing too much work on its main thread.
I/flutter (10325): catch : PlatformException(functionsError, Cloud function failed with exception., {code: DEADLINE_EXCEEDED, details: null, message: DEADLINE_EXCEEDED})
метод
void functionExecute() async {
AppUtils.showProgressDialog(context, 'Processing');
final HttpsCallable callable =
CloudFunctions.instance.getHttpsCallable(functionName: 'process')
..timeout = const Duration(seconds: 60);
try {
final HttpsCallableResult result = await callable.call(
<String, dynamic>{
},
);
print(result.data);
if (result.data['pay']) {
} else {
validationMsg('Try again Later');
}
} on CloudFunctionsException catch (e) {
print(e);
} catch (e) {
print('$e');
}
}