Open dongzhanhub opened 1 month ago
@dongzhanhub please use the code blocks to show the code in good format. Thanks
@dongzhanhub please use the code blocks to show the code in good format. Thanks Sorry, didn't notice, formatted But I have a question, how does MVC support receiving protobuf?
For the protobuf with mvc check the grpc examples with mvc
For the protobuf with mvc check the grpc examples with mvc
Thanks for your reply. I have seen this example about rpc, the configuration of pb.proto must be based on rpc service mode to receive protobuf data, which is difficult to coordinate multiple parties to change this configuration. Is MVC not currently supported in the form of a normal api? Or is there currently a way to receive octet-stream? this example:https://github.com/kataras/iris/blob/main/_examples/mvc/grpc-compatible/main.go
you can send both json or pb directly in the body. Both works for me.
the only thing you need is the DI ob the protobuf in the function.
Describe the bug On the issue of receiving protobuf data exception in MVC To Reproduce
The following is the main code segment, which works as a whole except for errors when receiving protobuf
Question:Directly in the outermost layer directly error, the program has not been executed to the controller
Response Error:valid character '$' looking for beginning of valueinvalid character '$' looking for beginning of value