Proxyman icon indicating copy to clipboard operation
Proxyman copied to clipboard

Protobuf doesn't like `repeated int` fields

Open jaroslavas opened this issue 8 months ago • 1 comments

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

  1. Have a field of repeated integers like: repeated double start_time_offsets = 20;
  2. 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
Image

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)

jaroslavas avatar Jun 02 '25 13:06 jaroslavas

thanks, it's a known issue.

I will rewrite how Proxyman handles the Protobuf. Currently, it's a bug

NghiaTranUIT avatar Jun 02 '25 14:06 NghiaTranUIT

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.

Jaroslav-spikeapi avatar Aug 11 '25 14:08 Jaroslav-spikeapi