ProtoBufjs throws an illegal wire type error if the fields are not explicitly marked as packed. According to the error message, the message has a wire type of 2, which, according to the Protocol Buffer docs, is used for packed fields among other things. The second example in example.js parses CatchPokemonResponse s after this change.
ProtoBufjs throws an illegal wire type error if the fields are not explicitly marked as packed. According to the error message, the message has a wire type of 2, which, according to the Protocol Buffer docs, is used for packed fields among other things. The second example in example.js parses CatchPokemonResponse s after this change.