Protobuf doesn't like `repeated int` fields
Description
If there is a type of repeated integers, proxyman fails to parse such protobuf file. With and without the desc file added for request.
Steps to Reproduce
- Have a field of repeated integers like:
repeated double start_time_offsets = 20; - Send such data
Current Behavior
Proxyman shows 20: 0x353335400a019e42 instead of the body content. This happens in both cases:
- If message type is not set at all
- Message type is set by adding desc file and selecting which message the body contains
Expected Behavior
Proxyman should display decoded message.
Environment
What is interesting, is that similar data structure was decoded fine when it was generated by apple swift package. Now when something similar is generated with com.google.protobuf:protobuf-kotlin:4.30.2 (using option 'lite') - it doesn't work. If I change from integer to double it works fine. Tried following integer types without success: int32, int64, uint32, sint32.
Proxyman Version 5.20.0 (52000) | macOS: Version 15.5 (Build 24F74)
thanks, it's a known issue.
I will rewrite how Proxyman handles the Protobuf. Currently, it's a bug
The biggest problem is that it's not even possible to export message body (it exports file with the code that looks the same as the one on preview). Would be good to fix at least that part.