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
7
votes
2 answers
504 Gateway Time-out Error on PHP Script
I coded a script for database import, it makes a few jobs on database. When I work this script, after a few minutes I'm getting "504 Gateway Timeout Error".
I increased all timeout values on php.ini, also I increased execution times but it is still…

birlikbilisim
- 163
- 2
- 5
- 14
6
votes
2 answers
Profiling a Perl CGI script that times-out
I have a Perl CGI application that sometimes times out, causing it to be killed by Apache and 504 Gateway Time-out error to be sent to browser. I am trying to profile this application using NYTProf, however I cannot read profile data:
$ nytprofhtml…

el.pescado - нет войне
- 18,889
- 4
- 46
- 89
5
votes
1 answer
Http 504 gateway timeout apache 2.4.6
Getting 504 Gateway Time-out in response if the server takes more than 60 secs, process on the server keeps running and complete its execution but on client side getting response 504 Gateway timeout of 60 secs so suspecting apache not waiting for…

Anil Singh
- 81
- 1
- 1
- 6
5
votes
1 answer
504 gateway timeout error NodeJs
I have an application which is hosted in DC/OS instance, The application query the snowflake database and get the result. I am using snowflake sdk to to query the snowflake data base, we are also streaming the result we are getting from snowflake.
…

user3649361
- 944
- 4
- 20
- 40
5
votes
2 answers
504 Gateway Timeout from an IIS Server
I am using a web Server based on IIS,I am using an Infor Application which is trying to fetch data from the Web Server. However when there is a lot of data and the query runs more than 60 seconds, i get a Gateway Timeout Error(504).
Where do i set…

Ajesh
- 59
- 1
- 1
- 5
5
votes
1 answer
Failed to load resource: the server responded with a status of 504 (Gateway Timeout)
I am developing a project using django - python, javascript. When I call a long running process (time-consuming) approx more than 20 minutes from views the process starts successfully. I used loader in ajax to notify user that process is running.…

Antony
- 581
- 4
- 7
- 24
5
votes
1 answer
Downloading an audio file with Express API and ytdl
I'm trying to download a Youtube video audio using the ytdl-core module (https://github.com/fent/node-ytdl-core).
I wrote an API using Express which lets me download an audio by its URL:
app.get('/api/downloadYoutubeVideo', function (req, res) {
…

omer bar lev
- 341
- 1
- 4
- 11
5
votes
1 answer
HTTP Error 504: Gateway Time-out when trying to read a reddit comments post
I am encountering an error when trying to get a comments' http from reddit. This has happened to various URLs (not all of them with special characters) and this is one of them. In one hour time frame, there may be 1000 or more requests to the…

Giannis H.
- 145
- 1
- 1
- 9
4
votes
1 answer
LinkedIn Share API 'ugcPosts' response 504 gateway timeout from PHP(Wordpress)
I'm using wordpress to shared my post into linkedIn. For this i'm using https://api.linkedin.com/v2/ugcPosts API. But this API response return 504 gateway timeout.
In previous step when i called another API to get access token, its easily got the…

Najmul Ahmed
- 41
- 3
4
votes
2 answers
POST API response blocked by CORS policy - React and Django Rest Framwork
I have created a backend server in Django with Django Rest Framework, and a React frontend. My front retrieves data from the back through APIs. Each app is on a different subdomain of the same domain. I use
Cloudflare to manage DNS and for SSL /…

AlexM88
- 194
- 3
- 14
4
votes
0 answers
Server running with daphne starts to response with code 504 on any http request after passing uncertain time
I'm using django-channels2+daphne in production.
After uncertain time passed I got this error twice (after 2 and after 6 hours correspondingly), which involved 504 answer on any HTTP request. I have no idea how should I debug the problem. Using…

Vassily
- 5,263
- 4
- 33
- 63
4
votes
2 answers
How to disable preflight cache-control headers for Angular service-worker (when calling event stream)?
Update 2: See my answer below. The 504 error is fixed
UPDATE: It appears this is NOT due to the cache-control headers, despite the error. If I disable the service worker, the headers are still present. Instead, this is due to the service worker…
user7729352
4
votes
2 answers
linkedin oauth2 login returns "504 Gateway Time-out"
I'm using linkedin login on my website. Everything was working until last week, when it started returning "504 Gateway Time-out" error. I did not change anything in my application settings on linkedin developer site nor in my application code. Weird…

Lukas Haberzettl
- 67
- 5
4
votes
1 answer
Why would AWS ELB (Elastic Load Balancer) sometimes returns 504 (gateway timeout) right away?
ELB occasionally returns 504 to our clients right away (under 1 seconds).
Problem is, it's totally random, when we repeat the request right away, it works as it should be.
Anyone have same issue or any idea on this?

Mehmet Fatih Yıldız
- 1,763
- 18
- 25
3
votes
1 answer
ERR_ABORTED 504 (Gateway Timeout) while importing a Stencil library in Vite in a Vue application
I am trying to import a custom web component from a web component library built with StencilJS in my Vue application created with Vite (version 4.0.4). This is the code in my main.js file:
import { createApp } from 'vue';
import App from…

arnab4477
- 31
- 1
- 3