facebook / flipper

A desktop debugging platform for mobile developers.
https://fbflipper.com/
MIT License
13.31k stars 954 forks source link

[iOS] Network plugin now showing Response Body #4673

Open minhchienwikipedia opened 1 year ago

minhchienwikipedia commented 1 year ago

I'm trying to use Flipper with the Network plugin but it's not showing the response from our API, our API work as well but I don't know why Network not showing it. image

Environment

Platform: iOS Packages:

"react-native": "0.68",
"react-native-flipper": "^0.162.0",
use_flipper!({ 'Flipper' => '0.162.0' })
Flipper application version 0.189.0
VladimirAtGlossgenius commented 1 year ago

Same here. Seems like 0.176.1 is the last version where network plugin works properly

minhchienwikipedia commented 1 year ago

@VladimirAtGlossgenius is it required to update the new react native version?

Akyna commented 1 year ago

Could it be related to Content-Encoding? When it gzip - everything ok and displays. When it 'br' - (empty)

minhchienwikipedia commented 1 year ago

@Akyna Thanks for your suggestion, based on your suggestion I'm tried to find the solution to change it, I found it here, basically I add 'Accept-Encoding': 'gzip' in my request headers and it works as well. Flipper should add this to the docs! I will keep this issue open until they have a solution to resolve it!

raphaelinmanage commented 1 year ago

I have the same problem Flipper App 0.189.0 Accept-Encoding': 'br'

My response body is (empty)

i have downgraded my flipper app to 0.176.1 everything works fine

adrien-finary commented 1 year ago

same here, if like me you are on macOS, you can install 0.176.1 using brew like so : brew install --cask https://raw.githubusercontent.com/Homebrew/homebrew-cask/881089b9880396e9214e70ff2d124f6084ba573e/Casks/flipper.rb

the link being the homebrew formula of version 0.176.1

ppeszko commented 1 year ago

Maybe this is the fix we are all waiting for :) 🤞 https://github.com/facebook/flipper/pull/4632

jacksaunders commented 1 year ago

I was having this issue, and was able to resolve it but making sure i had a forward slash at the end of the request url, (Django backend)