2018/10/11 17:57:49
[error] 8165#8165: *977 readv() failed (104: Connection reset by peer) while reading upstream,
client: xx.xx.xx.xx,
server: games.site.com,
request: "POST /ru/tis/upload HTTP/1.0",
upstream: "uwsgi://127.0.0.1:9999",
host: "games.site.com",
referrer: "https://forum.site.com/member/profile/edit/"
function() {
let file = $('#id')[0].files[0];
let xhr = new XMLHttpRequest();
xhr.xhrFields = {
withCredentials: true
};
let fd = new FormData();
fd.append('csrfmiddlewaretoken', $('[name=csrfmiddlewaretoken]').val());
fd.append('image', file);
xhr.open('post', location.protocol + _img_upload_url, true);
xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
xhr.send(fd);
}
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Connection: keep-alive
Content-Length: 835763
Content-Type: multipart/form-data; boundary=…--212700736647785187243382243
Host: games.site.com
Origin: http://forum.site.com
Referer: http://forum.site.com/member/profile/edit/
User-Agent: Mozilla/5.0 (X11; Linux x86_64…) Gecko/20100101 Firefox/58.0
X-CSRFToken: k52Tj9nl1TtVNqM5YhSnTMiluPPKCz…X7DaIu2Y5ncZxpRqi9kOTf0mmowxz
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: http://forum.site.com
Connection: keep-alive
Content-Encoding: gzip
Content-Language: ru
Content-Type: text/html; charset=utf-8
Date: Thu, 11 Oct 2018 14:40:58 GMT
Keep-Alive: timeout=20
Server: nginx
Set-Cookie: sessionid=18r19j719iihmecjg0qf…Only; Max-Age=1209600; Path=/
Transfer-Encoding: chunked
Vary: Cookie, Origin
X-Frame-Options: SAMEORIGIN
function() {
$.ajax({
method: "POST",
url: login_url,
dataType: 'json',
data: $form.serialize(),
beforeSend: function(xhr, settings) {
xhr.withCredentials = true;
xhr.setRequestHeader("X-CSRFToken", csrftoken1);
},
success: function(data) {
hideErrors();
$all_errors.addClass('hide');
location.reload()
},
});
}
Accept: text/html,application/xhtml+xm…plication/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Access-Control-Request-Headers: x-csrftoken
Access-Control-Request-Method: POST
Connection: keep-alive
Host: forum.site.com
Origin: https://games.site.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64…) Gecko/20100101 Firefox/58.0
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: accept, accept-encoding, authorization, content-type, dnt, origin, user-agent, x-csrftoken, x-requested-with
Access-Control-Allow-Methods: DELETE, GET, OPTIONS, PATCH, POST, PUT
Access-Control-Allow-Origin: https://games.site.com
Access-Control-Max-Age: 86400
Connection: keep-alive
Content-Length: 0
Content-Type: text/html; charset=utf-8
Date: Thu, 11 Oct 2018 06:09:05 GMT
Keep-Alive: timeout=20
Server: nginx
Vary: Origin
Accept: application/json, text/javascript, */*; q=0.01
Accept-Encoding: gzip, deflate, br
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Connection: keep-alive
Content-Length: 64
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Host: forum.site.com
Origin: https://games.site.com
Referer: https://games.site.com/ru/
User-Agent: Mozilla/5.0 (X11; Linux x86_64…) Gecko/20100101 Firefox/58.0
X-CSRFToken: oXa6EZOef3ZfUl5eVPLufryLlE4VIz…27Cy7mKjhgqsjpdXC7s5gZvLwcyOv