-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FirebaseFunctionsException: INTERNAL on cancelled HttpsCallable.call(...) #6138
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Not sure how the call was cancelled, looking at the logs quite some time passes before the exception is thrown:
|
Hi @nbransby, thank you for reaching out. Can you share how you were calling the function? and if possible the function code snippet itself? Thanks! |
Hey @nbransby. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
I am calling it as per https://firebase.google.com/docs/functions/callable?authuser=0&gen=1st#kotlin+ktx_3 (actually using https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-play-services/kotlinx.coroutines.tasks/await.html to get the result) My guess is that the device goes to sleep between the call (14:26) and the exception (15:02) which may be the cause of okhttp throwing the IOException |
Thank you for the details @nbransby. The Firebase Function Lines 369 to 380 in 456f431
As for the
Can you check your function logs and see what's causing the issue? Your logs show that the exception occurs ~30mins after the Function call, which is longer than the maximum value of timeoutSeconds indicated on our docs with 540 or 9 minutes. |
Thank you for clarification and additional details @nbransby. Handling IOException in onFailure makes more sense now. I’ll notify our engineers about this. PRs are all welcome. We really appreciate developers who are sharing their feedback and contributions since this helps us improve our SDK. You can check our contribution guidelines to get started. |
Does
IOException
need to be handled here? https://github.com/firebase/firebase-android-sdk/blob/main/firebase-functions/src/main/java/com/google/firebase/functions/FirebaseFunctions.java#L375The text was updated successfully, but these errors were encountered: