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

tomcat + nginx 502 error(104: Connection reset by peer)

I'm using nginx + tomcat. Intermittent nginx 502 errors occur. The error.log contents are as follows. 2019/10/08 06:40:54 [error] 52996 # 0: * 25112952 recv () failed (104: Connection reset by peer) while reading response header from upstream,…
2
votes
1 answer

How to set max-swallow-size in spring boot 2?

I'm trying to set max-swallow-size property of tomcat to -1 in springboot microservice while upgrading to springboot version 2; my earlier code was working but in upgrade some classes have changed so it stopped working. I tried to set property in…
YoB
  • 61
  • 1
  • 6
2
votes
1 answer

Client receiving 502 error despite Lambda logs reporting success

The API response body: ReadableStream bodyUsed: true headers: Headers __proto__: Headers ok: false redirected: false status: 502 statusText: "" type: "cors" url: "correct-url" __proto__: Response But the Lambda's logs report that it's returning a…
2
votes
1 answer

Urllib3 HTTP Error 502: Bad Gateway

I am trying to scrape zk.fm in order to download music, but it's giving me some trouble. I'm using urllib3 to generate a response, but this always yields a Bad Gateway error. Accessing the website through a browser works perfectly fine. This is my…
C. De Petter
  • 43
  • 1
  • 4
2
votes
0 answers

nginx + php-fpm70 getting 502 bad gateway

I'm Getting 502 bad gateway error in one of my magento2 site. Here are my configuration files. nginx.conf configuration file user nginx; worker_processes 4; worker_rlimit_nofile 100000; pid /var/run/nginx.pid; events { use epoll; # …
Jaimin
  • 21
  • 2
2
votes
2 answers

Laravel intermittent Bad Gateway 502 error and pages losing css styling

Some pages when trying to load I receive a Bad Gateway Ngnix 502 error however upon page refresh it will resolve the page load. Not sure if this is associated however one page requires a heavy mssql query and the page will load with the result…
Wick 12c
  • 133
  • 2
  • 15
2
votes
1 answer

Asp Core 2.0 HTTP Error 502.3 Bad Gateway

Yesterday, last time when i run my project there is no error, but now i run it, i have error HTTP Error 502.3 - Bad Gateway The specified CGI application encountered an error and the server terminated the process. i am not changing any code…
2
votes
1 answer

Function in PHP script causing a 502 Bad Gateway error

There's a function in my script that suddenly causes a 502 Bad Gateway error when running trough PHPStorm. I've never had it before with similar scripts. When I comment it out, I've got no errors at all. How's that possible ? The script takes info…
TanguyB
  • 1,954
  • 3
  • 21
  • 40
2
votes
1 answer

502 Bad Gateway after multiple request on Google Compute Engine

When working from the Office and multiple developers are hitting the server we start to randomly receive 502 error bad gateway. (Around one out of 10 hits) We are using Compute Engine with a Load Balancer HTTPs. Any idea why this is happening ?
Ronny Shibley
  • 2,030
  • 22
  • 25
2
votes
0 answers

REST service returns bad gateway when file is big and processing takes too long

I have made a REST service that receives a ZIP-file, process and check some stuff, and returns an ID. This works fine for smaller ZIP-files, but when sending larger files (currently testing with 17 Mb), and the processing takes longer, the service…
siririri
  • 21
  • 4
2
votes
1 answer

relatively simple Preg_match_all causes 502 Bad Gateway

I have a preg_match_all functions with pattern: preg_match_all( '/\[(if) ([^\]]*)\] ((?:(?!\[if).|(?R))*?) \[endif\]/sx', $text, $matches ); It's quite easy pattern I guess, it looks for a syntax [if condition] sometext [endif],…
atay
  • 155
  • 10
1
vote
0 answers

Adding User Client Roles as protocol mapper results in bad gateway in production for keycloak app

I have a dotnet application which uses keycloak as login method. When deploying the app to production, if I have set user client roles as protocol mapper for the clien in the admin console, I get a 502 bad gateway: Firstly, here is my source…
Lord Toby
  • 11
  • 2
1
vote
0 answers

UNRAID / Cloudflare Tunnel with Docker Container running File Browser gives error 502 bad gateway

I am new to cloudflare tunnels and I am right now trying to reach my services at home from anywhere. An VPN is no option because my internet provider gives me a private IP adress. I know how to set up an tunnel connection. An docker container…
1
vote
0 answers

I have deployed a flask application on google cloud app engine. After deploying i get 502 Bad Gateway error nginx . How can i solve this error?

I am running my flask application on google cloud that works fine locally and also in cloud editor.I have to deploy the flask application on google cloud so, i need to add app.yaml and requirement.txt file before deployment.I have added those files…
1
vote
0 answers

Deploying a Docker container with Nginx and FastAPI on Google Cloud Platform from SSH-term

I have a some issue when trying to deploy a simple FastAPI application with Nginx on Google Cloud Platform. In my case I should use SSH-terminal to run Docker container with Nginx and FastAPI. My nginx.conf configuration looks like: access_log …
1 2
3
11 12