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

Linking CSS and images to my EJS templates on remote Express server with Node.js (Ubuntu 18.04)

I have been extensively searching in here but every solution I tried kept failing, so here's my problem: I have developed locally a basic Express server to display a static page until I finished my full integration. My site structure is…
1
vote
0 answers

Postman returns 502 while CURL returns required response

I have been working on a third party API integration for a system I am working on. There I am invoking a login call to the third party via Postman for which I get a 502 response. However, if I invoke the same using the CURL request generated by…
vigamage
  • 1,975
  • 7
  • 48
  • 74
1
vote
1 answer

502 Bad Gateway nginx/1.13.12 on localhost while creating a new policy in ditto

I am new to docker, I'm using docker on windows 10 and am using Eclipse Ditto and Eclipse Mosquitto, I have to create a twin device. Before that I have to create a new policy via Postman, While executing the policy am getting the following…
1
vote
2 answers

failed (104: Connection reset by peer) while reading response header from upstream in docker and ubuntu

I created a DockerFile like below FROM ubuntu:18.04 MAINTAINER Amin Keshavarz # Add your github access token if needed in composer update as arg or env var. ARG github_access_token ENV…
Aminkt
  • 612
  • 9
  • 25
1
vote
2 answers

502 error comes for API call one after the other

I'm experiencing kind of weird error, I'm calling API (which written in golang) to get access token, that API returns the correct value for one time but if I send that API call again it returns 502 error code, then if I call that API once again it…
Nisal Edu
  • 7,237
  • 4
  • 28
  • 34
1
vote
1 answer

Ruby Net::HTTP patch request get 502 Bad Gateway

I am trying to implement a Curl patch request by Ruby. The Curl request is something like below: curl https://mywebsite/test/plan \ -X PATCH \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer {myJWT}' \ -d '{ "CheckOrNot": "N", …
1
vote
1 answer

502 Bad Gateway on fresh api-platform docker-compose

I have docker on Digital Ocean, and still trying to figure out how to work with api-platform. So I docker-compose up in api-platform-2.3.0 default page on port 80 loads up normally, but when I went to 8080, It shows bad gateway. So I looked up if…
1
vote
0 answers

GCloud SDK App Engine deployment with webpack returning 502 error nginx

I'm using Vue.js with vue-cli, and trying to get my webpack-bundled application functioning on the Google Cloud app engine so my back-end developer and I can work together more easily on integration. Neither of us has any prior experience with…
Amanda Harvey
  • 529
  • 5
  • 24
1
vote
0 answers

502 Bad Gateway nginx VM

I get a 502 Bad Gateway on my VM webserver and I don't know what to do. The error message I get is the following when running pm2 log. /root/.pm2/logs/server-error-0.log last 15 lines: 0|server | at Object.Module._extensions..js…
Fille_M
  • 873
  • 1
  • 6
  • 7
1
vote
1 answer

how to prevent 502 status code as response by haproxy as load balancer

I have 3 server: server (A)= a nginx(port 80) as reverse proxy to kestler (5000 port) server (B)= a nginx(port 80) as reverse proxy to kestler (5000 port) server (C)= a HAProxy as load balancer for port 80 of server (A) and (B) and server A & B are…
1
vote
0 answers

Node.JS Error: 502 Bad Gateway | ClientDuplexStream | Google Speech API

After a while running my node application this uncaught exception is thrown and I don't know why or where to handle it. I've tried adding eventEmitters for error with no luck. Error: 502:Bad Gateway at ClientDuplexStream._emitStatusIfDone…
1
vote
0 answers

Nginx Reverse Proxy to ASP.net Core Kestrel 502 Bad Gateway Error

We have Nginx reverse proxy in the front of Azure Website App Service, built by ASP.net Core program with Kestrel on IIS. However, only a few people got 502 Bad Gateway error. Is there anyone engaged similar problem or has solution for this?
Tony
  • 11
  • 2
1
vote
1 answer

Nginx throws 502 bad gateway sometimes with upstream as Amazon ELB

ELB dynamically scales up and down and hence ELB may resolve to different set of IPs at different times. Nginx caches the IPs for upstream targets so that it doesn't need to resolve the hostname again and again. But when the IPs for an upstream ELB…
1
vote
2 answers

Ruby on Rails Deployment eb deploy failed and 502 badgateway

HELP! I am super new to the AWS and Ruby. I finish writing an rail app recently and wanna deploy to aws. I was successfully deployed it into the aws but once i open the website , it showed this 502 bad gateway The log file is shown as below…
1
vote
1 answer

502 Bad gateway when using Transfer encoding Python

I'm trying to build a barebones HTTP/1.1 client using just sockets. Whenever i try to use Transfer-encoding: chuncked, the code give me following status:502 Bad Gateway. s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) print ("socket…
Ryan
  • 21
  • 1