504 Gateway Timeout. The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
Questions tagged [http-status-code-504]
279 questions
3
votes
2 answers
How to add a fix to avoid 504 Gateway timeout error
I am getting 504 Gateway timeout error from my GET method call to another service.
Recently I added a fix by increasing the timeout period but that didn't help.
This is what I have tried
public void getUserInformation(final Integer userId) {
…

user3919727
- 283
- 2
- 7
- 25
3
votes
2 answers
Gateway Timeout 504 on multiple requests. Apache
I have an XML file localy. It contains data from marketplace.
It roughly looks like this:
https://anotherserver.com/image1.jpg
https://anotherserver.com/image2.jpg

temo
- 612
- 1
- 9
- 25
3
votes
0 answers
Nginx error upstream timed out (110: Connection timed out) while SSL handshaking to upstream
I have three docker containers in my project: Nginx, tornado-app, and DB. My Tornado app serves WebSocket app (URLs are /clientSocket and /gatewaySocket) and Django app (URLs are everything except WebSocket URLs).I use upstream for serving tornado…

Mojtaba Kamyabi
- 3,440
- 3
- 29
- 50
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
1 answer
PHP FPM 7.1 socket leak causes NGINX - 504 Gateway Time-out
I use Laravel Forge for spinning up my EC2 environments, which makes a LEMP stacks for me. I recently started getting 504 timeouts on requests.
I'm no sysadmin (hence subscription to Forge), but I looked through the logs and narrowed the issue down…

Artur Grigio
- 5,185
- 8
- 45
- 65
3
votes
0 answers
Getting HTTP Status code 504. What could be the reason and how to fix it?
I have a core server and a gateway server. Only gateway interacts with CORE.
one of the requests had to interact with an external partner which includes following steps.
CORE sends a request to GATEWAY and waits for response
GATEWAY sends the…

Vamsidhar
- 822
- 11
- 24
3
votes
1 answer
R Plumber API: Prevent "504 Gateway Time-out"
I have written and deployed an R API using plumber to a Digital Ocean droplet as in the instructions.
I am posting in .json data and expecting .json data back. To do this I use the curl command from the command line, for example:
curl --data…

roman
- 1,340
- 9
- 33
3
votes
0 answers
Debug 504 error Docker container
we have a docker container which serves as Data Access Layer (Swagger API). The base image is Java. It's written in scala and the dockerfile is build by a sbt build. This container is between a frontend and a database (neo4j).
But now we often get…

DenCowboy
- 13,884
- 38
- 114
- 210
3
votes
1 answer
Unexplained Node.js 504s
We're running Node (v0.10.38) with Express (4.0.0), proxied through nginx (1.2.1), which usually works great. Recently, however, we switched to a new server setup. Now, roughly 30 minutes after starting up the server, the server starts returning…

MCKapur
- 9,127
- 9
- 58
- 101
3
votes
0 answers
GeoServer times out (504 Gateway Time-Out) when accessed from OpenLayers via nginx webserver
I have developed an OpenLayers web app that uses GeoServer. I am using nginx as my webserver with proxy_pass setup for GeoServer. Everything works as expected when I use "localhost" but when I switch to my IP address I get a 504 Gateway Time-Out…

Hilo
- 869
- 2
- 9
- 24
2
votes
1 answer
Spring Boot - request timeout 504
I have two Spring Boot REST application they talk with each other.
ProjectA, getTest rest service sometimes it takes a minute. It calls from projectB.
@PostMapping(value = "/test")
public ResponseEntity

volkangurbuz
- 259
- 1
- 4
- 14
2
votes
0 answers
504 gateway time-out error with nginx server for angular SSR project
I have my angular project deployed on nginx server in which angular universal is applied. Everything works fine. But when user log in and reload page then its showing '504 Gateway Time-out'.
My nginx configuration file is like below:
server {
…

ganesh
- 416
- 1
- 11
- 32
2
votes
2 answers
Nested logic app retries - parent throwing 504
I have a nested logic app which takes some time for 4 retries in case of a failure. According to the documentation, the default HTTP timeout is 100 seconds. I'm able to increase the HTTP client timeout value in my code which triggers the parent…

Kruti Joshi
- 384
- 3
- 16
2
votes
1 answer
Laravel Valet 504 Gateway Time-out nginx/1.19.6 after 60 seconds
I followed all the instructions here:
https://github.com/laravel/valet/issues/315
I noticed a better performance, especially after updating the PM pool configuration for Valet.
(Now some execution started to be completed because the time needed is…

Ponzio Pilato
- 315
- 1
- 5
- 18
2
votes
0 answers
google-dataproc keeps crashing with error 504
google-dataproc using pyspark.sql import SparkSession keeps crashing with "504. Thats an error" and none of the notebooks open, is there a solution available?

Manasa Mp
- 21
- 1