batou
June 19, 2024, 11:12am
1
Goal: define a resource connecting to a remote gRPC service using reflection
Steps: configured a resource connecting on my remote host on port 443 and relying on a bearer token, and selected "Connect to gRPC using Server Reflection", then enabled "Use SSL/TLS"
Details: while "Test connection" works well, when I try to use the resource in an app, I get the following error:
However, the messages and types are available through the reflection service:
grpcurl -H 'authorization: Bearer *******’ ********:443 describe .example.v1.public.users.User
example.v1.public.users.User is a message:
message User {
…
.example.v1.common.Gender gender = 6;
…
}
grpcurl -H 'authorization: Bearer ********’ ********:443 describe .example.v1.common.Gender
example.v1.common.Gender is an enum:
enum Gender {
UNSPECIFIED = 0;
FEMALE = 1;
MALE = 2;
NON_BINARY = 3;
}
I tried to look at the documentation to understand if there was some kind of limitations on reflection, but didn’t find anything that seemed relevant.
Is this something that’s supposed to be supported out-of-the-box? Did I missed something obvious here?
Thanks in advance for any help
does the name of that enum start with a .
or is that a typeo?
batou
June 19, 2024, 4:50pm
3
It's not a typo, it's part of the server reflection response.
Tess
June 28, 2024, 8:43pm
4
Hi @batou Our team is looking into this internally, so I'll keep you posted if I get any updates or if we have any follow up questions!
Is clicking "Test Connection" button on the resource successful or does that have an error as well?
batou
June 29, 2024, 6:27am
5
Hi @Tess ,
Thanks for the update!
Yes, I can confirm that the "Test Connection" works fine:
Tess
July 8, 2024, 8:20pm
6
Thanks! Our team is still looking into this. If you can share your proto files with me, that could help us research. Either way, I'll post here with any more updates
keenan
July 22, 2024, 10:55pm
7
I am also experiencing this same issue when using GRPC Reflection.
Thanks!
Tess
August 6, 2024, 6:04pm
8
Hey folks,
We are still looking into this. @keenan , @batou by any chance, are you using akka/scala?
keenan
August 6, 2024, 6:15pm
9
I am not using either of those.
Tess
August 6, 2024, 6:37pm
10
Thanks
Are you able to share your proto files with us for testing?
@Tess
I'm also facing this issue and struggling with it. Has there been any progress on this problem?
We are using connect-go and performing reflection. It works fine with Postman and BaseMachina.
Tess
September 4, 2024, 7:28pm
12
No, not yet Are you able to share your proto files with us for testing?