You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fetch fails intermittently on first request with 'POST' method when using nginx 1.10.x #7943
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.
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.
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.
Activity
xiaoneng commentedon Jun 6, 2016
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.
ryankask commentedon Jul 28, 2016
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.
ide commentedon Jul 28, 2016
We believe this might be fixed in RN 0.31-rc.0 which uses OkHttp 3.4.1.
ryankask commentedon Jul 28, 2016
I'm actually seeing this in iOS.
ide commentedon Jul 28, 2016
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.