Thriftpy / thriftpy2

Pure python approach of Apache Thrift.
MIT License
567 stars 90 forks source link

enum type is not correctly handeld #214

Open xemcerk opened 1 year ago

xemcerk commented 1 year ago

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.

aisk commented 1 year ago

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.