Vydia / react-native-background-upload

Upload files in your React Native app even while it's backgrounded. Supports Android and iOS, including camera roll assets.
MIT License
720 stars 325 forks source link

BadRequestError: Request disconnected during file upload stream parsing. #341

Open alexandergx opened 8 months ago

alexandergx commented 8 months ago

I have an app that uses react-native-background-upload to upload files to a nestjs backend.

When connecting the app to an instance of the backend running locally, uploads work in the foreground and background. However, when pointing the app towards the production server, as soon as the app goes in the background, the server responds with BadRequestError: Request disconnected during file upload stream parsing. after less than 2 seconds.

The only environment difference is the production server is running on an ec2 instance behind an auto scaling group with load balancing.

Could the auto scaling group be interfering with the library's ability to maintain background uploads? Does anybody else have experience with this?