Skip to content

[cloud_function] No implementation found for method CloudFunctions#call #1866

Closed
@Jbz797

Description

@Jbz797

Describe the bug

Since the last update i have this error when a try to call a cloud function

MissingPluginException (MissingPluginException(No implementation found for method CloudFunctions#call on channel plugins.flutter.io/cloud_functions))

The code snippet

Future<dynamic> forgotPassword(Map<String, dynamic> values) async {
  try {
    final response = await CloudFunctions.instance.getHttpsCallable(functionName: 'forgotPassword').call({
      'id': values['id'],
      'lang': values['lang'],
      'role': 'installer'
    });
    return response.data;
  } catch (e) {
    return {
      'message': e.message
    };
  }
}

Flutter doctor

[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Linux, locale fr_FR.UTF-8)
• Flutter version 1.12.13+hotfix.5 at /home/jeaden/flutter
• Framework revision 27321ebbad (il y a 6 semaines), 2019-12-10 18:15:01 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/jeaden/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /snap/android-studio/81/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.

[!] Android Studio (version 3.5)
• Android Studio at /snap/android-studio/81/android-studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] Connected device (1 available)
• WAS LX1A • H3XDU17B07001643 • android-arm64 • Android 8.0.0 (API 26)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions