Questions tagged [bad-gateway]

Bad gateway refers to http error 502 which is mean that a server which is try to fulfill the client request received an invalid response from upstream server

Bad gateway refers to http error 502 which is mean that a server which is try to fulfill the client request received an invalid response from upstream server.

For more information look for this article: https://www.lifewire.com/502-bad-gateway-error-explained-2622939

167 questions
1
vote
1 answer

502 Bad gateway Nginx reversy proxy, connect() failed (111: Connection refused) while connecting to upstream

I have a project, which consist of Go application + Nginx + Db(Postgres). All are building in docker containers. It is my docker-compose.yml file: version: "3" services: db: image: postgres:10 environment: -…
1
vote
0 answers

Why "502 Bad Gateway Microsoft-Azure-Application-Gateway/v2" occurred in angular PWA application?

I configured PWA on my angular 11 project and serve it with http-server on my laptop. It works completely on 127.0.0.1 but when I try to access the app with another device in the local network, the first page load and check authentication and try to…
1
vote
3 answers

502 Bad Gateway error on fastapi app hosted on EC2 instance + ELB

I have a FastAPI app that is hosted on EC2 instance with ELB for securing the endpoints using SSL. The app is running using a docker-compose.yml file version: '3.8' services: fastapi: build: . ports: - 8000:8000 command:…
1
vote
2 answers

Error Deploying Django App on Elastic Beanstalk

I'm trying to deploy my Django app on elastic beanstalk. It is saying that it is deployed, but the health immediately turns red and I see "502 Bad Gateway / Nginx" when I try to go to the site. I know there are other answers to this question on…
1
vote
1 answer

Is Microsoft Graph API down?

I don't know the proper channel to report or ask a question - but is MS Graph API down right at the moment? Maybe due to recent Cloudflare issues? I'm getting 502 Bad Gateway response both from Graph Explorer and from my own code. EDIT: Issue got…
1
vote
0 answers

While HttpClient gives bad gateway error, Postman works well for same rest endpoint

I have a problem about 502 gateway error in my production server. I try to develop an application which calls azure rest endpoints. I get response with Postman by sending the endpoint which has following…
mrtkprc
  • 57
  • 7
1
vote
1 answer

502 Bad Gateway nginx/1.21.1

Initial situation Have a Laravel App on a Vagrant Box, Ubuntu 20.04 and Nginx, installed with Homestead. I use browsersync to watch for file changes. Issue Suddenly I get a 502 Bad Gateway error at the URL localhost:3000, when npm run watch is…
maroluke
  • 13
  • 5
1
vote
0 answers

Getting 502 BadGateway response when posting using HttpClient (.NET) but not when using Postman

I have an API end-point that I need to post to. Using Postman I do the following: Set the method to be POST Add the URL In the Headers I set: Content-Type to be application/json In the Body I add my json string I hit [Send] and get a 200 response…
DrGriff
  • 4,394
  • 9
  • 43
  • 92
1
vote
1 answer

Server domain returning 502 Bad Gateway - Nginx

I am not able to access my server through domain name. Its showing 502 Bad Gateway. Error log showing SSL_do_handshake() failed. But its running successfully when i access through ip address. /etc/nginx/sites-available/default…
Lav Saini
  • 15
  • 1
  • 4
1
vote
1 answer

Encountering "111:Unknown Error" when trying to setup a reverse proxy using SSL for multiple domains

A friend and I are currently trying to setup a reverse proxy for his project. He has 3 domains with different names that we attached to his distant server. We are using nginx as the reverse proxy, and 3 dockers running "Express" web servers. We used…
1
vote
1 answer

Bad Gateway = Timeout from IIS Platform with python waitress

I'm getting a bad gateway due to a timeout of 2 minutes but I don't now how to configure it, the following is what I have tried. So, first of all, in python I'm setting a 120 second timeout (I don't want to change this, I've tried with 115 seconds…
user11323942
1
vote
1 answer

( solved ) Cant get php to run with nginx // whatevery i try i get 502 Bad Gateway

i tryed so much and followed countless guides for that problem but just cant find a solution, so i hope that you can find a problem in my configs or have a other idea what the problem could be. Beside my planned webpage i run the AMP-Webinterface…
Fantabaum
  • 11
  • 2
1
vote
0 answers

PlayFramework causes a 502 Bad gateway on long running request

I have a long-running request, which I want to handle in Play Framework which is behind an Nginx reverse proxy. After about 3 minutes, I get a 502 Bad Gateway as a response. Play keeps working on the request, though. I believe the Play Framework…
TheCommoner282
  • 205
  • 1
  • 7
1
vote
0 answers

How to debug a Coldfusion Bad Gateway error?

I'm trying to setup custom CFX tags for Coldfusion 11 but when I try to make a call to one of them the server just throws this 502 error: I've already looked at the logs in Colfusion administration panel but am getting no entries for this specific…
1
vote
1 answer

Sometimes 502 Bad Gateway , Sometimes 504 gateway timeout, sometimes website loads successfully

I have a website that is hosted on google cloud platform using NGINX server. Some hour before it was working well but suddenly an error of 502 bad gateway occured. NGINX server is hosted on another instance and main project is another instance and…
Nandan Pandey
  • 148
  • 1
  • 11