Flipper: Request Body shows binary data for POST network calls

Created on 2 Jun 2021  ·  5Comments  ·  Source: facebook/flipper

🐛 Bug Report

All the Request Body in POST request shows as (binary data)

Screenshot 2021-06-02 at 12 09 59 PM

The similar request when rolled back to Flipper Desktop versionv0.87.0 shows all the data correctly.

To Reproduce

Open any post request and look for Request Body field

Environment

Android Version - 0.91.2
Android OS Version - 11
Flipper Desktop version- 0.91.2
Desktop OS -mac OS 11.4

All 5 comments

Make sure to set a content-type header (we're still looking into detecting
utf8 strings automatically but didn't get to that yet, PR welcome).

On Wed, 2 Jun 2021, 08:08 Ritwik Shanker, @.*> wrote:

🐛 Bug Report

All the Request Body in POST request shows as (binary data)

[image: Screenshot 2021-06-02 at 12 09 59 PM]
https://user-images.githubusercontent.com/68220382/120438451-040b5500-c39f-11eb-819f-b736d4c9acc2.png
To Reproduce

Open any post request and look for Request Body field
Environment

Android Version - 0.91.2
Android OS Version - 11
Flipper Desktop version- 0.91.2
Desktop OS -mac OS 11.4


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/flipper/issues/2406, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAN4NBALQWUKSML5ESM4EPTTQXKIJANCNFSM456EUL6A
.

add as networkInterceptor ,not as application interceptor

I've been seeing this as well, with missing content-type header in the request.

Also seeing this for requests that go to AWS from the SDK, specifically: application/x-amz-json-1.1 and application/xml.

We added automatic utf-8 guessing, so this should be fixed in the next release.

Was this page helpful?
0 / 5 - 0 ratings