thriftpy2 icon indicating copy to clipboard operation
thriftpy2 copied to clipboard

enum type is not correctly handeld

Open xemcerk opened this issue 2 years ago • 1 comments

We define an enum type in .thrift file, and assign the corresponding field (which is of that enum type) with string, it seems all fine before the request is sent, but we observed that field is missing in log of our server. Is there any way to check how enum filed is transmitted, I presume it's int32, but if so, that wouid be correctly parsed in our server.

xemcerk avatar Jun 08 '23 11:06 xemcerk

You can using wireshark to capture the request (yes, wireshark have builtin support for thrift). Thus you can know if the field is missed by the client or server.

aisk avatar Jun 08 '23 12:06 aisk