flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

cloud functions callable functions code: invalid-argument

Open Louna-akkad1 opened this issue 1 year ago • 2 comments

Bug report

Describe the bug After upgrade cloud function to 3.3.3 in my flutter app my callable functions throughs errors PlatformException (PlatformException(invalid-argument, INVALID ARGUMENT, {message: INVALID ARGUMENT, code: invalid-argument}, null))

Steps to reproduce

Steps to reproduce the behavior:


  final HttpsCallable getContentImages =
      FirebaseFunctions.instance.httpsCallable('getContentImages');

  Future<HttpsCallableResult> fetchActiviesData() async {
    return getContentImages.call(<String, dynamic>{});
  }

calling > fetchActiviesData()

Louna-akkad1 avatar Jul 24 '22 16:07 Louna-akkad1

@Louna-akkad1 Can you provide flutter doctor -v ? and platform on which you are getting this error ? I tried the plugin's example using latest firebase_core and cloud_functions plugin versions and ran it on iOS device in which the data was retrieved properly as below:

Screenshot 2022-07-25 at 5 00 10 PM

Can you try the same and see if using plugin example, you get same error or not ?

darshankawar avatar Jul 25 '22 11:07 darshankawar

Hey @Louna-akkad1. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 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!

google-oss-bot avatar Aug 03 '22 01:08 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@Louna-akkad1 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Aug 12 '22 01:08 google-oss-bot