Here's an article, see if it helps: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/http-502-bad-gateway.html
502 Bad Gateway when stream image from s3
Hello everyone,
recv() failed (104: Connection reset by peer) while reading response header from upstream
Im getting this error from nginx error log.
My issue is im getting 502 bad gateway when try to stream an image at livewire blade. This problem only happen on my production side and on local site its working fine.
I already tried to restart my server, php, mysql, nginx also nothing happen. By the way im using forge for deployment and Media Library Spatie for upload the image and store into s3 bucket.
The upload function working fine at local and production site but stream an image only failed on production site.
Can someone help me because im stuck with this issue for 4 days.
Please or to participate in this conversation.