-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[cloud_functions] HttpsCallable.call throws PlatformException instead of CloudFunctionsException #2069
Comments
Any update on this? I'm having the same issue. |
Is there info if this is going to be fixed? I have the same issue |
the same here |
I fixed it at this issue #2556 but anyone reviewed it. |
6 months and the bug stays, this behaviour break all my tests. Waiting for #2556 pull request being aproved. @Salakar @collinjackson @kroikie |
Same error here!! |
@TahaTesser Could I kindly ping you? This is issue is quite problematic and there's a ready PR (two, actually). The only thing this issue needs is a little bit of ❤️ |
@cubuspl42 |
Any updates on this ? Happy to help if PR review is needed :) |
It is working for me but using
|
AFAIK, it's fixed in upstream. |
This has been fixed a while back, please try the latest release, thanks. |
Describe the bug
When calling .call trying to get an error (i.e. with wrong parameters, wrong function name or wrong region) I'm getting a PlatformException instead of a CloudFunctionsException
To Reproduce
This is the function that actually call .call
And this is where I call _simpleFunction
And I always get:
I/flutter (10343): Main block PlatformException(functionsError, Cloud function failed with exception., {code: INVALID_ARGUMENT, details: null, message: Invalid QR code})
Expected behavior
Reading the implementation of .call function, it should always return a CloudFunctionsException instead.
Additional context
cloud_functions version is 0.4.2
Till the version 0.4.1+6 was working fine.
The text was updated successfully, but these errors were encountered: