# (52) Empty reply from server on slow response

**URL:** <https://www.ruby-forum.com/t/52-empty-reply-from-server-on-slow-response/244842>\
**Category:** NGINX\
**Created:** [June 23, 2016, 2:02pm UTC](https://www.ruby-forum.com/t/52-empty-reply-from-server-on-slow-response/244842 "2016-06-23T14:02:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [June 23, 2016, 2:02pm UTC](https://www.ruby-forum.com/t/52-empty-reply-from-server-on-slow-response/244842/1 "2016-06-23T14:02:46Z")

</div>

Hi,

I have a node.js/express backend with nginx. Everything works fine  
except  
one request which gives back (52) Empty reply from server on slow  
responses  
ONLY (this request aggregates remote data, so in some very specific  
scenarios it takes time to complete). By slow, I mean specifically when  
the  
response takes more than 4 minutes (node.js still working since I see  
its  
log but nginx is already closing the request with the above message).

Anyone has an idea why this is happening ? And what’s the proper way to  
debug this kind of issues ?

Thank you in advance for your time.

Posted at Nginx Forum:

> **[(52) Empty reply from server on slow response](https://forum.nginx.org/read.php?2,267819,267819#msg-267819)**
>
> Hi, I have a node.js/express backend with nginx. Everything works fine except one request which gives back (52) Empty reply from server on slow responses ONLY (this request aggregates remote data, so in some very specific scenarios it takes time to...

---

<div class="post-metadata">

**Author:** ![ktiniatros](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/2acd7d/32.png) [@ktiniatros](https://www.ruby-forum.com/u/ktiniatros)\
**Post date:** [June 23, 2016, 2:24pm UTC](https://www.ruby-forum.com/t/52-empty-reply-from-server-on-slow-response/244842/2 "2016-06-23T14:24:58Z")

</div>

Hello!

On Thu, Jun 23, 2016 at 08:02:11AM -0400, ktiniatros wrote:

> I have a node.js/express backend with nginx. Everything works fine except  
> one request which gives back (52) Empty reply from server on slow responses  
> ONLY (this request aggregates remote data, so in some very specific  
> scenarios it takes time to complete). By slow, I mean specifically when the  
> response takes more than 4 minutes (node.js still working since I see its  
> log but nginx is already closing the request with the above message).
> 
> Anyone has an idea why this is happening ? And what’s the proper way to  
> debug this kind of issues ?

First of all, try looking into nginx error log.

–  
Maxim D.

> **[nginx](http://nginx.org/)**
