# Nginx cutting off ajax responses

**URL:** <https://www.ruby-forum.com/t/nginx-cutting-off-ajax-responses/195240>\
**Category:** NGINX\
**Created:** [September 20, 2010, 12:54pm UTC](https://www.ruby-forum.com/t/nginx-cutting-off-ajax-responses/195240 "2010-09-20T12:54:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/91b2a8/32.png) [@alexk](https://www.ruby-forum.com/u/alexk)\
**Post date:** [September 20, 2010, 12:54pm UTC](https://www.ruby-forum.com/t/nginx-cutting-off-ajax-responses/195240/1 "2010-09-20T12:54:28Z")

</div>

Hi,

I have nginx as proxy to apache. Sometimes AJAX responses are cutting  
off. And it mostly appears in Safari. In FF it appears rarely.

In error.log I found this record. Not sure what does it mean though:

2010/09/20 12:46:51 [crit] 11465#0: _87523 open()  
“/etc/nginx/proxy\_temp/6/08/0000000086” failed (13: Permission denied)  
while reading upstream, client: **.** _. **.** , server: _**.com,  
request: “POST /en/entries/addcommenttopage/12/525/20/newest\_first/polls  
HTTP/1.1”, upstream:  
“[http://127.0.0.1:8080/en/entries/addcommenttopage/12/525/20/newest\_first/polls](http://127.0.0.1:8080/en/entries/addcommenttopage/12/525/20/newest_first/polls)”,  
host: "www.**_.com", referrer:  
“[http://www](http://www).\*\*\*\*\*\*\*.com/en/entries/12/comments/newest\_first/polls///tab”

Any advise will be appreciated.

Thanks.

Posted at Nginx Forum:

> **[Nginx cutting off ajax responses](https://forum.nginx.org/read.php?2,132181,132181#msg-132181)**
>
> Hi, I have nginx as proxy to apache. Sometimes AJAX responses are cutting off. And it mostly appears in Safari. In FF it appears rarely. In error.log I found this record. Not sure what does it mean though: 2010/09/20 12:46:51 \[crit\] 11465#0: \*87523...

---

<div class="post-metadata">

**Author:** ![alexk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/91b2a8/32.png) [@alexk](https://www.ruby-forum.com/u/alexk)\
**Post date:** [September 20, 2010, 1:21pm UTC](https://www.ruby-forum.com/t/nginx-cutting-off-ajax-responses/195240/2 "2010-09-20T13:21:24Z")

</div>

Hello!

On Mon, Sep 20, 2010 at 06:53:36AM -0400, alexk wrote:

> request: “POST /en/entries/addcommenttopage/12/525/20/newest\_first/polls  
> HTTP/1.1”, upstream:  
> “[http://127.0.0.1:8080/en/entries/addcommenttopage/12/525/20/newest\_first/polls](http://127.0.0.1:8080/en/entries/addcommenttopage/12/525/20/newest_first/polls)”,  
> host: “www._**.com", referrer:  
> "[http://www](http://www).**_.com/en/entries/12/comments/newest\_first/polls///tab”
> 
> Any advise will be appreciated.

Due to lack of permissions nginx wasn’t able to create temporary  
file in proxy temp’s directory. Check permissions, nginx workers  
should be able to write there.

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

Maxim D.
