Flipper: Android Sample App Post Request failing with 404 error

Created on 18 Aug 2020  路  5Comments  路  Source: facebook/flipper

馃悰 Bug Report

The Android Sample app allows user to "Send POST Request" which can be used to demonstrate the Network Plugin. However, the request is no longer working. It fails with a 404 (Page Not Found) error. It appears the the service used to host the request (mockable.io) is no longer configured correctly.

To Reproduce

1) Start Flipper
2) Start the Android Sample App
3) Issue the post request from the Sample App

image

4) The request never completes in Flipper. It appears that Flipper never recognizes the failure, the request just appears as an incomplete call. So even in the case of failure, it seems that the request should time-out with a 404 error. So there may be a couple of issues here.

image

Note: Here is the code that makes the request:

image

Additional Note:

Here is the same request being run directly from a browser.

image

Environment

Flipper 0.52.1

bug good first issue plugin-network

Most helpful comment

@mweststrate I agree. It would be nice to have both GET and POST, something with a bunch of headers and a fairly complex JSON response. And something that is pretty stable. I'll do some research. I also noticed that the sample app for iOS has 3 requests while Android has 2. Probably good to normalize that as well.

All 5 comments

@mweststrate
Could you add the "plugin-network" label to this issue? I could not figure out how to do it myself. I'm assuming that I don't have access.

Thanks.

Done. P.s. I think it is pretty irrelevant for the demo where it posts to, so any other demo endpoint like for example the star wars api will probably do.

@mweststrate I agree. It would be nice to have both GET and POST, something with a bunch of headers and a fairly complex JSON response. And something that is pretty stable. I'll do some research. I also noticed that the sample app for iOS has 3 requests while Android has 2. Probably good to normalize that as well.

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

This is still an issue but I do not have the permissions to change the label.

Was this page helpful?
0 / 5 - 0 ratings