Skip to content
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

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

Open
zhangyc opened this issue Jan 9, 2024 · 1 comment
Assignees
Labels

Comments

@zhangyc
Copy link
Contributor

zhangyc commented Jan 9, 2024

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.

@ilmalte ilmalte added the type: bug Something isn't working label Oct 22, 2024
@ilmalte
Copy link
Collaborator

ilmalte commented Oct 22, 2024

This issue has been reported in an older version than the latest available on pub.dev, (1.1.0 released on the Mar 21).

Also, many improvements and bug fixes have been pushed to main since the version 1.1.0, and they will be released soon.
You might want to try to update your pubspec.yaml file to point directly to main for now:

dependencies:
  nakama:
    git:
      url: 'https://github.com/heroiclabs/nakama-dart.git'
      path: nakama

I am not certain if this will resolve the issue, so I will attempt to reproduce it and see if it needs further investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants