Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "Network request fail" (timeout) in android #26305

Closed
navata opened this issue Sep 3, 2019 · 3 comments
Closed

Error "Network request fail" (timeout) in android #26305

navata opened this issue Sep 3, 2019 · 3 comments
Labels
Bug Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@navata
Copy link

navata commented Sep 3, 2019

Hi All,

I have used fetch to server and not use timeout in android. Information request:

  • Time request: about 10seconds
  • Method request: POST
    I have error as below for both HTTPS and HTTP. I try to research for this issue but not solution. I hope receive from your support.
    May be, we have issue timeout in Timeout XMLHttpRequest #26240. But it only close and not solution.

Error:
Screen Shot 2019-09-03 at 2 49 19 PM

Code:

return fetch(urlFull, {
        method: "POST", // *GET, POST, PUT, DELETE, etc.
        mode: "cors", // no-cors, cors, *same-origin
        cache: "no-cache", // *default, no-cache, reload, force-cache, only-if-cached
        credentials: "same-origin", // include, *same-origin, omit
        headers: {
            "Content-Type": "application/x-www-form-urlencoded"
            // "Content-Type": "application/json"
        },
        redirect: "follow", // manual, *follow, error
        referrer: "no-referrer", // no-referrer, *client
        body: qs.stringify(data)
        // body: JSON.stringify(data)
    })
        .then(res => res.json())
        .then(response => {
            console.log("response", response);
            return {
                data: response
            };
        })
        .catch(error => console.error("Error:", error));


@navata navata added the Bug label Sep 3, 2019
@react-native-bot react-native-bot added the Platform: Android Android applications. label Sep 3, 2019
@react-native-bot
Copy link
Collaborator

Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety?

👉 Click here if you want to take another look at the Bug Report issue template.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Resolution: Needs More Information labels Sep 3, 2019
@stale
Copy link

stale bot commented Dec 2, 2019

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.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Dec 2, 2019
@stale
Copy link

stale bot commented Dec 9, 2019

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Dec 9, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Dec 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

2 participants