Closed anotherGoogleFan closed 3 years ago
I tried many times and found that it seems like a bug in github.com/gogo/protobuf/jsonpb
.
I raise an issue: https://github.com/gogo/protobuf/issues/718
hey sorry for the delay, we have a fork of jsonpb in github.com/metaverse/protobuf -- in my projects i simply use modules to replace the import and thatll make your int64s numbers again.
On Sun, Jan 17, 2021, 6:05 PM HuangTao notifications@github.com wrote:
I tried many times and found that it seems like a bug in github.com/gogo/protobuf/jsonpb. I raise an issue: gogo/protobuf#718 https://github.com/gogo/protobuf/issues/718
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/metaverse/truss/issues/323#issuecomment-761932953, or unsubscribe https://github.com/notifications/unsubscribe-auth/APUUNDVNZ2FYIKKTHEOJFULS2OJQJANCNFSM4WD2VZHA .
Thanks a lot. That solve my problem.
My proto is like this:
AND I post a request: HTTP POST: http://127.0.0.1:5050/add_1
I got the response like this:
but in proto file, I define ans is an int, not string. I think the response should be like this: