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
0
votes
2 answers
Azure: not able to browse to the URL
Azure has been acting very strange. Previously, all was fine until an update for my cloud service took more than the usual 20 minutes. I then decided to delete and redeploy, however not preserving the previous certificate.
So I repackaged and…

matt
- 2,857
- 7
- 33
- 58
0
votes
1 answer
Nginx not found, but server display "504 Gateway Time-out" (WHM/cpanel)
Server working with WHM/Cpanel, and when long time php scripts executing, server display "504 Gateway Time-out".
But I can't find any nginx files on server...
Tried:
find / -name nginx.conf
whereis nginx
ps -lA | awk '$12 == "?" {print $4,…

Nibik Alexander
- 49
- 4
0
votes
0 answers
Apache and mod_wsgi returning 504 error when posting specific SVG string
I have a wierd 504 error occuring in Apache + mod_wsgi when I post a specific SVG string. The backend application is Python Flask, but it does not seem to get to the application at all.
Here is one request that returns a 504 error:
curl…

Martin Taleski
- 6,033
- 10
- 40
- 78
0
votes
1 answer
How can I quickly detect 504 Gateway Timeout error with libcurl?
We have some running AWS EC2 servers, our clients use libcurl to send HTTP request (POST) to those server with their public DNS, the servers might be shutdown without notifying clients, then our clients need almost 50 seconds to finish a request and…

Aladdin
- 171
- 8
0
votes
1 answer
HTTP Status Code 504
I use an application where i enter information regarding a product. Each product has a unique id and can be entered only once, when i try to enter the same product once again in the application it gives me "504" error stating product has already…

DPH
- 261
- 4
- 16
0
votes
1 answer
504 gateway timeout nginx+php5-fpm
I realize that this may be a duplicate question, but none other helped me (after for the solution searching for 4 days).
I'm using nginx + php5-fpm for a web application. It worked flawlessly in Apache, so I know it's some configuration problem.
My…

Abhishek Goyal
- 867
- 1
- 7
- 21
0
votes
1 answer
504 Gateway Time-out with Nginx / GlassFish
Many answers on SO mention FastCGI params to prevent timeout. I tried to follow these advice (see the fastcgi params below), but it does not prevent the timeout.
I use Nginx to redirect to a glassfish app on port 8080. My nginx.conf:
http {
…

seinecle
- 10,118
- 14
- 61
- 120
0
votes
1 answer
Many SQL queries and Gateway Timeout
I have simple query
UPDATE `local-cadastre` SET `name` = :district_name WHERE `id` = :uniq_id
But this query is repeated about 24000 times in foreach cycle, it works good but browser displays 504 Gateway Timeout error, is it possible to avoid this?

Itsmeromka
- 3,621
- 9
- 46
- 79
0
votes
1 answer
When I will get HTTP 504 error using java HttpUrlConnection Class
I'm using HttpUrlConnection class in my java code.
In my environment the connect code never experiences any HTTP 504 error. Whereas in one of my customer environment it throws HTTP 504 error.
Have googled about what 504 is. Based on that have…

krishna
- 807
- 2
- 11
- 19
0
votes
1 answer
Custom 504 page not working
In the software I developed, the user can send a XLS file that the PHP uses to insert rows to the database. Usually one file has 1500 lines and results in 7000 lines in the database. The process usually takes 5 to 7 minutes to complete.
After…

Lucas Ferreira
- 858
- 8
- 18
0
votes
1 answer
PayPal new Rest API return HTTP Status 504
I was testing the new Rest API of PayPal, following their "Make your first call" sample at https://developer.paypal.com/webapps/developer/docs/integration/direct/make-your-first-call/.
Everything when well but since yesterday, I only get HTTP 504…

Steve
- 309
- 3
- 17
0
votes
1 answer
Website timeout on mobile webpage
I have a website running on php.
I access the website on my smartphone. ( In this case, i am using iphone4 chrome mobile browser)
When i click login, the page submits to a another php page and triggers a call to my phone.
The phone call comes in, i…

Qumar
- 183
- 1
- 8
0
votes
0 answers
django with mongodb giving a 504 Gateway time-out
So, I am writing a django-mongo app, using mongo for storing files as well, and using the python files mongoforms and mongoengine. Things were going well for a while, but just recently I have started to get 504 errors. I am using nginx -> apache…

rossdavidh
- 1,966
- 2
- 22
- 33
0
votes
1 answer
Silverlight enabled WCF Service and Entity Framework 504 issue
I'm building a Silverlight MVVM template and and am getting stuck with the WCF Service returning and Entity Object.
Here's what I did:
Using Entity Framework on the server side
Created a small test database with a couple of tables.
Created a WCF…

Niels Filter
- 4,430
- 3
- 28
- 42
-1
votes
1 answer
Why is my API returning 504 Responses through the requests module but working fine (200) on Postman?
I am attempting to make a requests.requests("Post") request to an API in my python script. If I test my API endpoint in Postman and make the POST request, I am able to get the correct response w/ a no problem. But if I use the exact…