heroiclabs / nakama-dart

Pure Dart Client for Nakama Server
https://heroiclabs.com/docs/nakama/client-libraries/dart
157 stars 48 forks source link

gRPC Error (code: 5, codeName: NOT_FOUND, message: RPC function not found, details: [], rawResponse: null, trailers: {}) #86

Open zhangyc opened 6 months ago

zhangyc commented 6 months ago

Describe the bug When I use final response = await client.rpc( session: userSession!, id: targetId, payload: jsonEncode(payload), ); when sending a message response: gRPC Error (code: 5, codeName: NOT_FOUND, message: RPC function not found, details: [], rawResponse: null, trailers: {}) Reproduction Code Note: This is mandatory! If your issue does not contain it, it will be closed.

Example:

When I use final response = await client.rpc(
       session: userSession!,
       id: targetId,
       payload: jsonEncode(payload),
     ); when sending a message

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Flutter Doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.5, on macOS 14.1.1 23B81 darwin-arm64, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.3.2)
[✓] VS Code (version 1.85.1)
[✓] VS Code (version 1.85.1)
[✓] Connected device (4 available)
[✓] Network resources

! Doctor found issues in 1 category.

pubspec.yaml

nakama: ^1.0.5

Additional context Add any other context about the problem here.