search

Home  >  Q&A  >  body text

用python解析protobuf数据,却遇到了tag had invalid wire type错误?

大家讲道理大家讲道理2803 days ago919

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-04-18 10:15:41

    You try not to save the file and directly use ParseFromString to see if it can be parsed successfully. Could it be that the binary data changed during the transmission process, but the Java parsing was successful, which is strange. You can also ask the server to write files, and then compare the size with the file you wrote. See if it's the same.
    I googled this exception, please refer to https://groups.google.com/for...

    reply
    0
  • Cancelreply