Skip to content

Incorrect logging protobuf requests/responces #1330

@juncevich

Description

@juncevich

Useless converting raw bytes from request(response) bodies broke protobuf model deserialization.

Description

Protobuf response body incorrect deserializing, because FilteredHttpRequest(FilteredHttpResponse).getBody() converts body to string and after that convert string to byte array. Which cause to brake model from body. For example, if i have raw body bytes array size 170, response.getBody() array of bytes size will 250, because it was converted to string.

Expected Behavior

FilteredHttpRequest.getBody() gives raw bytes, without converting to string.

Actual Behavior

изображение

Possible Fix

getBody must contains raw bytes from response

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions