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
2 answers

PHP 7.0 loaded instead of PHP 7.2 on ubuntu server after upgrade

I need to install PHP 7.2 on a Ubuntu 16.04.6 LTS server running PHP 7.0 with fpm. I've installed php7.2, php7.2-fpm, enabled the module, disabled 7.0, set the alternatives /etc/alternatives/php -> /usr/bin/php7.2 /etc/alternatives/php-cgi ->…
SimoneB
  • 592
  • 1
  • 6
  • 16
1
vote
0 answers

IBM Domino 502 Bad Gateway on redirect

In our application we have a REST integration with another service It worked fine untill recently, however, sometimes we are returned with 502 Bad Gateway in the application We send HTTP requests through curl and it seems that to be working but then…
Joe D
  • 44
  • 1
  • 10
1
vote
0 answers

NuGet private server returns 502 (Bad Gateway) when pushing new package

I deployed new private NuGet server (NuGet.Server.3.4.1) and set up API key in web.config. Then I created first nuget package from my .net core class library project. But when I try to run following command dotnet nuget push packageName.1.0.0.nupkg…
Muflix
  • 6,192
  • 17
  • 77
  • 153
1
vote
2 answers

error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway fatal

I was uploading code to my gitlabs repo and I'm receiving this error Counting objects: 29295, done. Delta compression using up to 4 threads. Compressing objects: 100% (21490/21490), done. Writing objects: 100% (29295/29295), 31.10 MiB | 167.62…
Nik
  • 187
  • 3
  • 17
1
vote
1 answer

Nginx Bad Gateway with .pdf files

I'm trying to upload/download a .pdf file in Nginx, but it's returning error 502, before the proccess, the program insert data in mysql, and it's normal, only when trying to upload a file. /etc/nginx/sites-available/projectexample server { listen…
Matheus
  • 52
  • 1
  • 11
1
vote
1 answer

Bad Gateway 502 - Google App Engine - [CRITICAL] WORKER TIMEOUT

I was working on deploying my web application via Google App Engine when I encountered a 502 Bad Gateway Error(Nginx). After running gcloud app logs read, I tracked the error down to be: 2020-05-12 00:15:59 default[20200511t163633] "GET…
1
vote
2 answers

IIS Rewrite Reverse Proxy getting HTTP 502 error when using SSL

I am looking for ideas/suggestions to setup/troubleshoot a configuration that allows me to debug a scenario as follows. I am using IIS 10, Visual Studio 2017 I have a web application that posts a message to a 3rd party site. The 3rd party site…
haler212
  • 13
  • 1
  • 3
1
vote
1 answer

Problem with create team with Microsoft Graph Api

I have a problem with creating teams using the Microsoft Graph Api. I can get/create groups but when I try to get/create teams I get an error. I'm using postman and the group has owners and members, just as the documentation of MS, also has the…
DanteGz
  • 11
  • 3
1
vote
1 answer

PHP is working in command line but error 502 in browser

Please help me, my server is crashed, for static files it's fine, but my server throws error 502 bad gateway for every php script run from browser. I created a simple test.php script, when I run this scrip from command line using php test.php it's…
Surono
  • 21
  • 3
1
vote
1 answer

502 Bad Gateway for Jenkins with nginx

I have a VPS with nginx. gitlab, phpmyadmin is already running with certbots https. Now I want to add jenkins. I changed its port to 8090 for not colidating with gitlabs 8080 port. I checked each ones status and all services are running. …
b0ss
  • 109
  • 1
  • 3
  • 12
1
vote
0 answers

Accounts.createUser and Meteor.loginWithPassword throw 502 Bad Gateway

I have a problem in my meteor app. My app works fine in localhost, but when I deploy it, and try to create a user with Accounts.createUser or when I try to login with Meteor.loginWithPassword, browser console prints 502 bad gateway and the app…
1
vote
1 answer

Nginx + Node JS + Express JS producing 502 error

I tried now for already two days to get my server going... I think I already had like 30 different nginx configs and tried different ports and everything. I'm pretty upset right now because none of the guys doing tutorials for setting up a nginx +…
jshAMG
  • 23
  • 8
1
vote
2 answers

Docker nginx 502 bad gateway for GET/Post requests but not websocket

There have been various similar cases here on stackoverflow but they're pretty much all refer to incorrect ports or using localhost as the IP instead of the docker-machine ip. The vue.js app connects perfectly fine to the websocket and works.…
Rien
  • 398
  • 2
  • 12
  • 37
1
vote
0 answers

getting 504-Bad Gateway error while saving Instagram images

I am trying to save Instagram images on my local machine through API and using the file_put_contents php method I have tried sleep() method ini_set('max_execution_time', 400); $access_token = ""; $photo_count = 8; $json_link =…
Ganesh
  • 81
  • 1
  • 12
1
vote
0 answers

502 Bad Gateway: Registered endpoint failed to handle the request: on cloud foundry

After pushing my app to Cloud Foundry (pushing was successful), I am getting back (by using the url): 502 Bad Gateway: Registered endpoint failed to handle the request. My log: 2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] OUT 2019-05-20…
lisa
  • 107
  • 5
  • 12