The android code references timeoutMilliseconds:
but the dart code passes timeoutMicroseconds:
The android plugin should use the parameter timeoutMicroseconds and should also use TimeUnit.MICROSECONDS instead of TimeUnit.MILLISECONDS.
Actually, it looks like the setTimeout() functionality was broken in the firebase-functions android lib 17.0.0 (the version cloud_functions uses). See firebase/firebase-android-sdk#604
In addition to fixing the parameter issue mentioned above, the android library should be upgraded to 19.0.1.
I'd be happy to open a PR for this, but not sure if library upgrades require a special review.
I'm experiencing timeouts in Flutter after 5-10 seonds, with the DEADLINE_EXCEEDED error, even though the Firebase Function completes successfully and reports no error.
I came across this Stack Overflow post, reporting the problem in the Android functions library:
https://stackoverflow.com/questions/56977242/firebase-functions-gives-timeout-on-client-side-after-10s
It seems that an upgrade to the newest Android functions library would solve this problem.
@noelmansour do you know of any workaround for this, while we wait for the update?
You'd have to fork this repo and make the changes I described in the comments. Then use that as the cloud_functions plugin for your project.
I'm experiencing timeouts in Flutter after 5-10 seonds, with the DEADLINE_EXCEEDED error, even though the Firebase Function completes successfully and reports no error.
I came across this Stack Overflow post, reporting the problem in the Android functions library:
https://stackoverflow.com/questions/56977242/firebase-functions-gives-timeout-on-client-side-after-10sIt seems that an upgrade to the newest Android functions library would solve this problem.
I'm experiencing this also. Do we need to create a new issue for this to get it addressed?
Some new about this issue ?
Hi, any update coming out soon?
Has this been resolved yet? I need to call cloud functions...
Some new about this issue ?
A PR with a fix has been filed: https://github.com/FirebaseExtended/flutterfire/pull/1854
@collinjackson That PR does not fix this completely. I am still getting DEADLINE_EXCEEDED with cloud_functions: ^0.4.1+8 if executing a function takes longer than ~6 seconds.
I guess the reason is that firebase-functions Android lib was not updated as described in the above comments (it is still 17.0.0, should be at least 19.0.1).
Thanks for investigating. If someone wants to open a PR for the fix I'll be happy to land it.
@collinjackson have opened a PR which updates the firebase-functions Android lib from 17.0.0 to 19.0.1. From testing locally and using this updated lib in my app I have not found any errors, so have not marked this as a breaking change. Apologies in advance if this is not the case.
What's the state of this bug? Any progress except an open pull request?
What's the state of this bug? Any progress except an open pull request?
Deadline_Exceeded bug was solved in the last update of cloud functions for flutter (^0.6.0).
Most helpful comment
Has this been resolved yet? I need to call cloud functions...