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?
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?