502 Bad Gateway error while uploading more that 50 assets in Strapi Media Library in a stretch

Hello,

I am trying to upload more that 50 assets ( size more that 10mb for each file ) in media library it upload few on them after a point it throws 502 bad gateway error for the rest of the images
Using server Nginix

We are using s3 bucket for storing our assets.

Tried the same upload on local but its working fine its giving issue only when i am trying to upload on DEV environment.

Can someone please help me with this issue.

Thanks.

System Information
  • Strapi Version: 4.3.8
  • Operating System: macOS Monterey
  • Database: MYSQL
  • Node Version: 14.19.0
  • NPM Version: 6.14.16
  • Yarn Version: NA

502 is normally not a strapi issue but your load balancer and network having issues.
So might want to check your nginx settings etc. Or whatever you are using for a load-balancer / web server.