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

com.google.protobuf.Any support? #105

Open
bazfp opened this issue Jan 27, 2021 · 9 comments
Open

com.google.protobuf.Any support? #105

bazfp opened this issue Jan 27, 2021 · 9 comments

Comments

@bazfp
Copy link

bazfp commented Jan 27, 2021

I have some services that can send a com.google.protobuf.Any type but my types are unrecognised by grpcui when I try to construct a message. Only the service type and some google types seem to be available for use in the Any field.

I have tried compiling a protoset + using reflection. If I enter one of my message types into the Request form it autofills to unrecognized.

Is this related to fullstorydev/grpcurl#193?

@jhump
Copy link
Contributor

jhump commented Jan 27, 2021

Unfortunately, this is different. This is simply a use case that isn't well supported yet. There's a TODO in the code for it:
https://github.com/fullstorydev/grpcui/blob/master/internal/resources/webform/webform.js#L150

So grpcui should be able to fully handle receiving Any messages. But to send, there's metadata needed by the UI to render a web-form for the message type. And that isn't plumbed through yet.

@bazfp
Copy link
Author

bazfp commented Jan 27, 2021

Ah that's a pain. Looking forward to using gprcui to construct Any messages. Arguably the hardest part! I will leave this open until it is in.

@mvillafuertem
Copy link

mvillafuertem commented Jan 15, 2023

Hi there @jhump, any news on this issue or workaround?

@banandh
Copy link

banandh commented Sep 15, 2023

Hi @jhump - Any updates on this or Any workaround. Other gRPC tools also has some limitation for ANY object

@jhump
Copy link
Contributor

jhump commented Sep 15, 2023

@mvillafuertem, @banandh, I am no longer with FullStory, so I don't usually have time to work on patches for this sort of thing. Sorry! I still watch the repo and try to answer questions where I can, but that's often the extent of my assistance. In spare time, I'm currently trying to finish a v2 of my protoreflect repo, and after that perhaps I'll have some cycles to look into this item.

Others that are still at FullStory (like @dragonsinth) have generously taken over maintenance, but that's mostly reviewing PRs and cutting releases, not working on new features or non-trivial improvements like this issue warrants.

@vsrikrishna32
Copy link

@jhump Curious if you had a chance to look into this. Also, is the Raw Request form supposed to work? I am running into a weird case while supplying protoset and using Any type. The request works fine from grpcurl but not in grpcui. Fails with code = InvalidArgument desc = unknown message type

@jhump
Copy link
Contributor

jhump commented Dec 13, 2024

@vsrikrishna32, I don't work at FullStory anymore and am not really involved with maintaining this or grpcurl anymore. I still follow issues and PRs and try to chime in to answer questions, but I'm not actually making any contributions to the codebase. (I'm now a maintainer of a few repos at https://github.com/connectrpc and that tends to dominate the spare time I have for OSS stuff, so I've unfortunately been neglecting things like these fullstorydev projects and even my personal OSS projects.)

So I have not had any chance to investigate making any improvements here, and don't really anticipate that changing anytime soon. Sorry.

That is unfortunate about what happens when entering raw JSON that references an unrecognized message type. That seems like a bug. IIRC, in the request form, if you enter an unrecognized message type, it will let you enter arbitrary raw JSON for that element, so it should similarly accept unrecognized message types when you are directly editing the raw JSON.

@vsrikrishna32
Copy link

Got it thanks for the context. I think I am just running into this: #206

@vsrikrishna32
Copy link

Ok. took a crack at this . First time doing anything in Go, so would appreciate comments.

#354

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

No branches or pull requests

5 participants