Skip to content

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

Description

@alexandergx

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?

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions