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 Server Reflection gives error message #6380

Open
1 task done
hawkaa opened this issue Aug 24, 2023 · 2 comments · May be fixed by #8284
Open
1 task done

gRPC Server Reflection gives error message #6380

hawkaa opened this issue Aug 24, 2023 · 2 comments · May be fixed by #8284
Assignees
Labels
A-grpc Area: GRPC / GRPC Protocol C-improvement Category: Improvement / Enhancement S-verified Status: Verified by maintainer

Comments

@hawkaa
Copy link

hawkaa commented Aug 24, 2023

Expected Behavior

When I press "Click to use server reflection" I expect to get help to construct the requests going to my gRPC server.

Actual Behavior

I'm getting an error message "Uh Oh!" with the following info:

Error invoking remote method 'grpc.loadMethodsFromReflection': Error: 12 UNIMPLEMENTED: Method not found: grpc.reflection.v1alpha.ServerReflection/ServerReflectionInfo

Stack trace:

Error: Error invoking remote method 'grpc.loadMethodsFromReflection': Error: 12 UNIMPLEMENTED: Method not found: grpc.reflection.v1alpha.ServerReflection/ServerReflectionInfo
    at a.invoke (node:electron/js2c/renderer_init:2:7723)
    at async onClick (file:///Applications/Insomnia.app/Contents/Resources/app.asar/debug-89179a3a.js:21:2463)

Reproduction Steps

  1. Use the following proto file:
syntax = "proto3";

package datawriter.apis.v1;

service DataWriterService {
  rpc WriteStaticDataBytes (WriteStaticDataBytesRequest) returns (WriteStaticDataBytesResponse) {}
}

message WriteStaticDataBytesRequest {
  bytes payload = 1; 
}

message WriteStaticDataBytesResponse {
  string namespace = 3;
  string table_name = 4;
}
  1. Add it to Insomnia with "Click to change proto file".
  2. Click "Click to use Server Reflection"

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

2023.5.6

What operating system are you using?

macOS

Operating System Version

Ventura 13.4.1 (c)

Installation method

insomnia.rest

Last Known Working Insomnia version

n/a

@hawkaa hawkaa added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Aug 24, 2023
@duberton
Copy link

One possible workaround is to enable server reflection. I've been running a gRPC server with 'io.github.lognet:grpc-spring-boot-starter:5.1.5' and managed to fix this issue by enabling it with the following property: 'grpc.enableReflection: true'

@sahak1an
Copy link

In the context of gRPC, reflection service refers to enabling the server reflection feature. gRPC server reflection is a protocol that allows gRPC servers to expose information about their defined services and message types at runtime.

https://grpc.io/docs/guides/reflection/

Spring boot grpc.enableReflection=true
Quarkus quarkus.grpc.server.enable-reflection-service=true

@ryan-willis ryan-willis self-assigned this Dec 5, 2024
@ryan-willis ryan-willis added the A-grpc Area: GRPC / GRPC Protocol label Jan 9, 2025
@ryan-willis ryan-willis added C-improvement Category: Improvement / Enhancement S-verified Status: Verified by maintainer and removed B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Jan 17, 2025
@ryan-willis ryan-willis linked a pull request Jan 17, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-grpc Area: GRPC / GRPC Protocol C-improvement Category: Improvement / Enhancement S-verified Status: Verified by maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants