Skip to content

Fetch fails intermittently on first request with 'POST' method when using nginx 1.10.x #7943

Closed

Description

@xiaoneng

Fetch fails intermittently on first request with 'POST' method when using nginx 1.10.x with following server-side error:

client sent stream with data before settings were acknowledged while processing

Similar to:
#7642

Activity

  1. xiaoneng commented on Jun 6, 2016

    @xiaoneng
    Author

    Just a follow-up to hopefully keep others from banging head against wall on 'POST' requests.

    Above seems to be due to http2 changes in nginx 1.10.x.
    Nginx 1.10.x do not use http2 ( ssl only will work ) or you will have above problem.
    Nginx 1.9.5 seems to work with http2 so seems to be change between versions. I didn't try other 1.9 versions.

  2. ryankask commented on Jul 28, 2016

    @ryankask
    Contributor

    It is indeed an nginx bug. You can track https://trac.nginx.org/nginx/ticket/959. I'm hoping there is a 1.10.2 release.

  3. ide commented on Jul 28, 2016

    @ide
    Contributor

    We believe this might be fixed in RN 0.31-rc.0 which uses OkHttp 3.4.1.

  4. ryankask commented on Jul 28, 2016

    @ryankask
    Contributor

    I'm actually seeing this in iOS.

  5. ide commented on Jul 28, 2016

    @ide
    Contributor

    I believe the issue's been fixed in nginx 1.11.x -- just did some research on our own servers since we haven't been seeing HTTP/2 issues on iOS nor Android since we upgraded recently.

    My reading of http://stackoverflow.com/questions/36907767/nsurlerrordomain-code-1004-for-few-seconds-after-app-start-up/37195635#37195635 is that iOS 9's NSURLSession library and nginx 1.10.1 don't get along.

    I'm closing this since it doesn't look like it's related to React Native nor reasonable for RN to fix. Solutions at hand: use nginx 1.9.x, 1.11.x, or disable HTTP/2 until Apple patches iOS if they ever do.

  6. locked as resolved and limited conversation to collaborators on Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions