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
3
votes
0 answers

NGINX 502 Bad Gateway error inside Docker container

I haven't had any issues with my Docker container or NGINX until today where I am getting a random unexpected 502 Bad Gateway error even though I have made no changes to my configuration files, Docker files, or any other file in my project. The 502…
3
votes
2 answers

nginx php-fpm 502 Bad Gateway

I was running Ubuntu server 20.04 quite successfully with Ired mail and 2 websites, one of them with WordPress. I wanted to install Nextcloud, to do that I had to reinstall php-fpm to generate php7.4-fpm.sock. After this Nextcloud worked, but my…
Lee Bolton
  • 33
  • 1
  • 4
3
votes
0 answers

Why do i get a "BadGateway" Error When Running the Excel Online "Run Script" Action in PowerAutomate?

I have recently being using the new Office Scripts function on Excel Online, and when i have tried to connect this with flow and try to run the script, it results in a BadGateway Error, after it retries twice BadGateway Can anyone help with this? { …
johnk3
  • 31
  • 3
3
votes
1 answer

502 bad gateway after 30 seconds

One of the pages on my website requires a long computation on the server(~2 minutes). If I run the website on localhost it works fine. But in production when ~30 seconds. Here's my http section of the nginx conf: http { log_format main …
Bob Sacamano
  • 699
  • 15
  • 39
3
votes
1 answer

502 Bad Gateway Nginx Reverse Proxy

I'm pretty new with docker and docker-compose. I'm trying to host multiple websites with HTTPS on a single server. SSL certs can t be generated because locahost it is not a valid host ok normal. And i'm getting a 502 bad gateway error. It seems…
Bigbenny
  • 243
  • 1
  • 3
  • 10
3
votes
2 answers

Check for Internet connection from application

I need to check if the user is connected to internet before I can proceed. I am hitting the endpoint using HttpClient as follows: client := &http.Client{} req, _ := http.NewRequest("GET", url, nil) req.SetBasicAuth(username, password) res, err :=…
Nagireddy Hanisha
  • 1,290
  • 4
  • 17
  • 39
3
votes
0 answers

Angular 2 http.get response error 502 bad gateway

I am having angular 2 typescript application. I have 3 tabs. When I click on each tab,the data will be displayed in the card.The data is accessed via rest api using angular HTTP service…
user2301
  • 1,857
  • 6
  • 32
  • 63
3
votes
3 answers

Gunicorn with unix socket not working gives 502 bad gateway

I'm following the http://www.obeythetestinggoat.com/book/chapter_08.html book, and it says to add a unix socket to run nginx server with gunicorn, which i did. This is my nginx file server { listen 80; server_name mydjsuperlist-staging.tk; location…
anas munir
  • 182
  • 3
  • 10
2
votes
1 answer

Using a docker file on github codespaces results in 502 bad gateway

I have a fastapi python script that works on codespaces when I use the following command: uvicorn main:fast_API_app --reload The following code appears and my api's work fine: INFO: Will watch for changes in these directories:…
2
votes
1 answer

When deployment I got this error [error] 9#9: *1 connect() failed (111: Connection refused) while connecting to upstream Nginx 502 Bad Gateway

I have a project that contains Django - Docker - Postgresql - Nginx I followed this tutorial for adding SSL to my project using LetsEncrypt Link Before following this tutorial, my project was live on digitalocean succesfully. After that i got nginx…
DjMicCheck
  • 45
  • 1
  • 3
2
votes
0 answers

Error trying to refresh the access token with Spotify Web API

I am currently developing a mobile application that uses Spotify integration, as you may know when authenticating with spotify we receive an access token and a refresh token, the first one expires after an hour and the second one is used to request…
2
votes
1 answer

Valet 502 Bad Gateway

valet is not working after I updated php from 7.3 to 7.4. I already tried to reinstall valet, php, nginx and dnsmasq but it's still not working. Now the ngix server is running but I can't acces to my projects. I get the error 502 Bad Gateway for…
2
votes
0 answers

nginx 1.14.2 docker bad gateway respone

Good day. I have been working with Docker recently. Faced such a problem: The administrative part of the site is working fine, and the public part gives an error 502 bad gateway. Here are the settings for my docker: docker-kompose.yml (root…
fenix_63
  • 21
  • 2
2
votes
2 answers

502 Bad Gateway on Angular App deployed on K8 cluster

I have deployed 3 services on a k8 cluster which uses a Traffic ingress controller. I get a 502 Bad Gateway error for accessing my Angular built front end but by backend node server and mongo db work fine. I have tried an Nginx ingress controller…
2
votes
0 answers

502 bad gateway when async request hits 2 min

The issue described below doesn't happen on local development, only once I have deployed everything to test environment, which is hosted on Azure Web App. When calling an API endpoint from Angular (where I use Observer and subscribe on the request),…
T-Rex
  • 53
  • 9
1
2
3
11 12