Questions tagged [http-status-code-502]

148 questions
92
votes
4 answers

nginx: connect() failed (111: Connection refused) while connecting to upstream

Trying to deploy my first portal . I am getting 502 gateway timeout error in browser when i was sending the request through browser when i checked the logs , i got this error 2014/02/03 09:00:32 [error] 16607#0: *1 connect() failed (111:…
Abhishek Tripathi
  • 1,570
  • 3
  • 20
  • 32
8
votes
4 answers

AWS Load Balancer 502 Bad Gateway

I have microservices written in node/express hosted on EC2 with an application load balancer. Some users are getting a 502 even before the request reaches the server. I register every log inside each instance, and I don't have the logs of those…
8
votes
1 answer

CORS issues with Serverless Lambda and API Gateway

Solved The below issue was simply caused by the body property of the response object constructed in my Lambda. I was forgetting to stringify the data, returning body: data instead of body: JSON.stringify(data). This problem with the response…
8
votes
2 answers

Enabling CORS on Google App Engine for a Django Application

I have been trying to enable CORS headers on Google app engine but none of the methods that I found over the internet worked for me. My application is on Python/Django and I want my frontend application (which is hosted separately) to be able to…
Swapnil
  • 2,573
  • 19
  • 30
7
votes
3 answers

Google cloud load balancer causing error 502 - failed_to_pick_backend

I've got an error 502 when I use google cloud balancer with CDN, the thing is, I am pretty sure I must have done something wrong setting up the load balancer because when I remove the load balancer, my website runs just fine. This is how I configure…
6
votes
3 answers

gcp cloud run upstream connect error or disconnect/reset before headers. reset reason: protocol error

I have a node app bundled with webpack which I am trying to deploy to cloud run. In order to be able to load a file more than 32 MB (the set limit) in cloud run I added the header ('Transfer-encoding' : 'chunked') to the webpack config file. (The…
5
votes
1 answer

How do I fix this NGINX 502 Bad Gateway error?

I'm working on web sockets in an angular app. I have it connect to a python back-end through nginx. I'm find that I'm getting 502 "Bad Gateway" errors about 90% of the time. I'll do this: Load page in browser and connect web socket Python…
user2023861
  • 8,030
  • 9
  • 57
  • 86
5
votes
0 answers

CORS error suddenly shows – site was working fine until today

Since this morning I get CORS errors in Chrome for my website trying to load font awesome fonts from a CDN. Both, production and development server are affected. I have not changed anything, the error came completely out of the blue: Access to Font…
Armin Hierstetter
  • 1,078
  • 2
  • 12
  • 27
4
votes
0 answers

Nodejs Axios get request with 502 Bad Gateway response for some sites

Hi I'm developing a small Node JS script for downloading to local files images from differents weather sat/radar sites. For exapmple https://radar.weather.gov/ridge/lite/KBYX_loop.gif when I open this url in my browser it opens perfectly the gif…
4
votes
0 answers

How to properly set up Flask with CORS and Authorization Header

I want to set up CORS within my flask application and adding flask-cors helped up to a certain point. While "CORS(app)" helped with all routes that don't require Authorization, I can't access routes that do. One route in question looks like…
kidman01
  • 835
  • 5
  • 17
  • 32
3
votes
1 answer

Android studio Bintray 502 bad gateway

I'm getting 502 from Bintray when I try to run my Android app. I've tried: Clear cache/restart Updating my gradle version Updating Exoplayer version Still getting the error from Bintray. Best regards. The screenshot of error Could not determine…
3
votes
3 answers

Nextjs Image Component 502 Error in Server

next/image cause the server down of error 502 gateway error. I check from the devtool network, it go fetch the third party (themoviedb) api. Those images cannot be load correctly but it work fine in my local machine in nextJs build in image…
Wilker
  • 551
  • 2
  • 6
  • 21
3
votes
1 answer

nginx: connect() failed (111: Connection refused) while connecting to upstream - after update nginx -

After update nginx to version 1.19 my web server stop to work. I am getting 502 gateway timeout error in browser when i was sending the request through browser when i checked the nginx error log, i got this error 2021/03/24 06:25:50 [error]…
Elisha Bentzi
  • 71
  • 1
  • 1
  • 6
3
votes
1 answer

Parts of https://jenkins.io is down. How do I report it?

So https://www.jenkins.io/ has been down for at least most of the afternoon. The main page is accessible, but blog posts and plugins etc. aren't available. I get a 503 that looks like this: I figured I'd try again later, but since it was still down…
3
votes
2 answers

Laravel on Cloudflare produces 502 Bad Gateway on form errors

On my Laravel app, I have a form that is validated using standard Laravel validation. If it fails, it simply redirects back to the same form and displays the errors. This is working perfectly fine on my local machine as well as on the dev site…
Giedrius
  • 1,370
  • 3
  • 14
  • 37
1
2 3
9 10