Describe the bug
The timeout for cloud functions appears to be 10s regardless of what you set it to or even if you just let it use the default.
To Reproduce
Make a call using HttpsCallable on an Android device and it will response with DEADLINE_EXCEEDED if the cloud function doesn't return within 10s.
Expected behavior
I expect the timeout to use the default value of 60s if not specifically set or to use the value set.
Additional context
This is an Android specific problem, everything works as expected on iOS devices.
Hi @spedalilama
can you please provide your updated flutter doctor -v
and your flutter run --verbose?
Also, to better address the issue, would be helpful
if you could post a minimal code sample
or the steps to reproduce the problem.
Thank you
flutter doctor -v
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.14.6 18G103, locale en-US)
• Flutter version 1.9.1+hotfix.6 at /Developer/flutter
• Framework revision 68587a0916 (3 months ago), 2019-09-13 19:46:58 -0700
• Engine revision b863200c37
• Dart version 2.5.0
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Developer/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /Developer/Android/
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
• Xcode at /Users/Amy Spedale/Downloads/Xcode 3.app/Contents/Developer
• Xcode 11.2.1, Build version 11B53
• CocoaPods version 1.7.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 41.1.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (2 available)
• SM G900V • 4aa19819 • android-arm • Android 6.0.1 (API 23)
• iPhone 8 • 49E9586A-9FAB-473A-9022-090FEE3EFC22 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-2 (simulator)
• No issues found!
For the code sample, make an https call like below to a cloud function that will take longer than 10s to return and will result in a DEADLINE_EXCEEDED error.
final HttpsCallable callable = CloudFunctions.instance.getHttpsCallable(
functionName: 'receiptValidation',
);
HttpsCallableResult resp = await callable.call(
'receipt_data': purchaseDetails.transactionReceipt,
'appName': appName
});
This Stack Overflow post report the problem in the Android functions library:
https://stackoverflow.com/questions/56977242/firebase-functions-gives-timeout-on-client-side-after-10s
What version of the Android functions library is currently being used? Is there an update to use the latest Android functions library scheduled soon?
@spedalilama Was there a fix to this problem? I am having the same issue.
No, and I've tried the latest release of the cloud_function (0.4.1+6 - released on 12/12/19), but I see the same issue.
+1
I am also having the same Issue.
Same issue here.
Hi @opringle @supdann @Marcusg62
if you are experiencing the issue with the latest stable (or above)
could you please provide your flutter doctor -v ,
your flutter run --verbose, your pubspec.yaml
and if possible a reproducible minimal code sample.
Thank you
@spedalilama Was there a fix to this problem? I am having the same issue.
The last update of cloud function for flutter(^0.6.0) resolver this issue.