After pressing the "Add Route/Copy Highlighted Calls" the "untitled" route replaces existing routes.
Have some mocked routes (5) and press the "Add Route" or the "Copy Highlighted Calls". Sometimes, the new "untitled" route replaces existing routes. This behavior is inconsistent but I can reproduce it several times.
The new route should be placed at the top of the list without overriding any existing routes.
Flipper desktop app version 0.67.0 but I could reproduce the issue at least from version 0.64.0
cc @bizzguy would you mind looking into this one?
I'll take a look.
@mgoyanes - I was not able to reproduce the error. I was using the sample Android app to test. Behavior does sometimes change when using more complex network calls than those in the sample app. Would you be able to share the actual API calls you were using?
Also, I did find another error that is caused by responses that don't have a body. (The POST request in the sample app returns a 404 and no body in the response and causes the problem). I was able to post a fix for this in PR-1776 (https://github.com/facebook/flipper/pull/1776)
I'll try to do more testing on more complex APIs but if you could provide some more detail on how to recreate that error, that would be really helpful. Thanks.
Hello @bizzguy
Thanks for looking at this.
I will try to create a video with the behavior I'm seeing.
I don't know if I can ask this but here it goes.
This is what I'm missing in the mock network responses:
Thanks.
@mgoyanes I like those ideas! I'm also working on a feature to save the mocks to a file so they could be imported by another developer. I'd be interested in your ideas on that.
@mweststrate. Could you add a "plugin-network" label to this issue?
@mweststrate
This can be closed. It is fixed by https://github.com/facebook/flipper/pull/1917
Thank you @bizzguy