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

Failing to consume POST server side makes the app unable to receive the response #23862

Closed
SimenB opened this issue Mar 12, 2019 · 2 comments
Closed
Labels
Bug Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@SimenB
Copy link
Contributor

SimenB commented Mar 12, 2019

🐛 Bug Report

Horrible title, sorry 😬

When uploading a file using multipart form, if the server does not consume the stream, the client is unable to receive the error returned by the server

Note that in the provided reproduction, this happens on both android and ios. On my real project, it only happens on ios, and android works correctly. I'm not sure what the differences between my real project and this reproduction is...

The reproduction is quite big (apollo server, expo etc), but I think it's still small enough to be useful

(I was told to open up this issue, sorry I wasn't able to reduce it further down.)

To Reproduce

See reproduction repo: https://github.com/SimenB/rn-response

Expected Behavior

The error should propagate properly regardless if the stream ins consumed on the server or not

Code Example

https://github.com/SimenB/rn-response

Environment

  React Native Environment Info:
    System:
      OS: macOS 10.14.3
      CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
      Memory: 1.00 GB / 16.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 10.15.2 - /var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/yarn--1552394315515-0.1438881264855969/node
      Yarn: 1.13.0 - /var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/yarn--1552394315515-0.1438881264855969/yarn
      npm: 6.9.0 - ~/.nvm/versions/node/v10.15.2/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    IDEs:
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.5.0 => 16.5.0
      react-native: https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz => 0.57.1
@hramos hramos added the Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. label Mar 12, 2019
@dulmandakh dulmandakh added the Platform: iOS iOS applications. label Mar 17, 2019
@stale
Copy link

stale bot commented Aug 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 Aug 2, 2019
@stale
Copy link

stale bot commented Aug 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 Aug 9, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. Platform: iOS iOS applications. 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

4 participants