-
Notifications
You must be signed in to change notification settings - Fork 837
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 Request returns Error: Message violates its Protobuf type definition #12938
Comments
Hey @Anand911-verteil! Thanks for the detailed steps. Unfortunately, I can't see this on our end using the proto below. Could you share a scaled-down version of your proto to help us further investigate this?
|
Hi @appurva21, Thank you for reaching out. Unfortunately, I am unable to share the proto schema as it is confidential to our company. However, I can provide some more details or assist in any other way that might help you troubleshoot the issue. Please let me know how else I can assist you. |
Hi @appurva21
Example proto: rpc DoFoo(FooRequest) returns (FooResponse);
message FooResponse {
string response = 1;
}
message FooRequest {
string this_works = 1;
map<string, string> this_causes_the_error = 5;
} Example request body in postman: {
"this_causes_the_error": {
"test1": "test1",
"test2": "test2"
},
"this_works": "test"
} Error message: |
@jonsor Thanks for the details, I can reproduce this now. We'll update this thread once the fix is out. |
@jonsor Thank you for providing the sample protos. rpc DoFoo(FooRequest) returns (FooResponse);
message FooResponse {
string response = 1;
}
message FooRequest {
string this_works = 1;
map<string, otherMessage> this_causes_the_error = 5;
}
message otherMessage {
string someText = 1;
} |
Is there an existing issue for this?
Describe the Issue
The following error occurs when attempting to make gRPC call in Postman after upgrading to v11 (previously on v10).
Error Message:
Error: Message violates its Protobuf type definition
Calls to the respective services is not made it throws this error with no other information, verified the types of protobuf used postman was interpreting one of the
Map
fields to asrepeated
and when casting this to as array it worked which is not the actual behaviour of the field in our schema. The error is being logged at the request renderer-requester.logThe issue persists with Postman agent as well.
Steps To Reproduce
Screenshots or Videos
Operating System
Linux
Postman Version
11.2.1
Postman Platform
Both
User Account Type
Signed In User
Additional Context?
No response
The text was updated successfully, but these errors were encountered: