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
1
vote
0 answers
Request getting Error 504
So we need to send a request but we are recieving error 504 and after spending hours on it we cannot find whats missing or whats wrong.
The person who created it has left and we cannot fix it. The full error JSON is here…

HydroXide
- 11
- 3
1
vote
1 answer
How to generate 504 gateway timeout error
I am testing a web application, which was sometimes generating 504, gateway timeout error. I want to check whether it is still generating the same or not.Is there any way by which I can generate the 504 error again?

Mansi
- 63
- 3
- 11
1
vote
0 answers
How to continue a for loop with a 504 Gateway Timeout error response from an API?
I am using a package called lob to standardize a dataset of addresses I have. I have been receiving a 504 gateway error after running through a few thousand addresses. The response error from Lob is the following:
.......Traceback (most recent call…

Phil
- 11
- 1
- 4
1
vote
1 answer
Play Framework POST endpoint returning Time Out - 504
I'm running a REST API production built on Play Framework 2.5.10. Its running through NGINX reverse routing, I'm able to reach all GET end points but I get a timeout on all POST endpoint, all this consume JSON.
Please note that on the development…

Seroney
- 805
- 8
- 26
1
vote
1 answer
python: requests.exceptions.Timeout vs requests.models.Response.status_code 504 ( gateway timeout )
requests.exceptions.Timeout VS
requests.models.Response.status_code = 504 [gateway timeout]
what is the actual difference between the two as both deals with saying timeout has occurred?
Let us say Service s1 makes call to S2
In s1:
request.post(…

nkkrishnak
- 397
- 1
- 3
- 12
1
vote
1 answer
Python Simulate 504 Gateway Timeout Error
I am trying to simulate a protocol error 504 gateway timeout. This is my server code. I would like to return a 504 error in the add() method.
from SimpleXMLRPCServer import SimpleXMLRPCServer
def add(x,y):
return x+y
# A simple server with…

aw88
- 33
- 1
- 4
1
vote
1 answer
Magento2 504 Gateway Timeout
I'm dev my e-commerce with Magento 2, hosted on Siteground shared server.
Since my db is getting bigger, I suppose the server takes too much time to respond, so I get 504 Gateway Timeout (if I try to add/edit products). I read I should edit some php…

Giuseppe Capoluongo
- 91
- 11
1
vote
0 answers
Getting a 504 only when Fiddler is present?
A GET request is constructed to test the network and it is configurable to purposely wait for 15 minutes within the IIS process before responding.
When the request is issued in Chrome without Fiddler it completes successfully.
However, with Fiddler…

crokusek
- 5,345
- 3
- 43
- 61
1
vote
1 answer
Backand - No 'Access-Control-Allow-Origin' header
I'm trying to register a new user using:
Backand.signup(firstName, lastName, username, password, password2);
but I end up getting:
XMLHttpRequest cannot load https://api.backand.com/1/user/signup.
No 'Access-Control-Allow-Origin' header is present…

cs_pupil
- 2,782
- 27
- 39
1
vote
0 answers
Need An Explanation: TIME_WAIT for PHP5-FPM Stays Open for 60 Seconds
I ran into an issue the other day where my nginx web server stopped processing php scripts and gave a 504 Gateway Timeout. I've got php5-fpm setup on port 9000.
When I ran netstat | grep 9000 I got the following result, hundreds of times with…

jcaruso
- 950
- 11
- 19
1
vote
1 answer
Getting error code 504 Gateway Timeout when opening more than 6 parallel threads NSURLConnection.sendSynchronousRequest
Getting error code 504 Gateway Timeout when opening more than 6 parallel NSURLConnection.sendSynchronousRequest using dispatch_group_async and different dispatch queue and dispatch group.
This error is not consistent and happens around 30% of the…

CloudSails
- 101
- 7
1
vote
1 answer
504 Gateway timeout / 502 Bad gateway after installing php curl - server nginx
I have (well had) a working server with nginx on board.
A server (dedicated) was only used to host a drupal site.
Recently we decided to host also a magento store on it and started preparation.
Since magento and nginx did not work together out of…

Szymon Łazaruk
- 63
- 1
- 10
1
vote
1 answer
How to avoid 504 when making an API call
I am using the following code to create a request from my node application to call an API.
var options = {
host: "www.something.com",
path: "/api/something.php",
method: "POST"
};
var request = https.request(options,…

rahulroy9202
- 2,730
- 3
- 32
- 45
1
vote
2 answers
Unable to get a response from Apple APN production server
We have a application that uses APNs services and the backend/server of the application is in .net. I have created the dev and prod Cert. for the application and placed the production certificate on the production server.
We have no problem in…

Usman Awan
- 1,208
- 2
- 13
- 30
1
vote
0 answers
Mobile Hotspot Replaces Site Address With Incorrect IP
On some of our web apps, when a user connects via a Verizon 5510L Jetpack mobile connection the site address is replaced with an incorrect IP address, and of course throws a 504 error.
Has anyone else ever experienced this? or know why this is…

Pete H
- 11
- 1