Welcome! Log In Create A New Profile

Advanced

ошибка с curl(18)

denis
August 04, 2015 01:20PM
Добрый день.

Пытаюсь понять: есть некий скрипт на flask (python), через собственный
отладчик запрос работает нормально, он же черех nginx не хочет. ошибка
curl: (18) transfer closed with 233 bytes remaining to read

Общий конфиг
user nginx;
worker_processes 1;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;


events {
worker_connections 1024;
}


http {

proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;

uwsgi_read_timeout 1800;
uwsgi_send_timeout 300;

include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local]
"$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

keepalive_timeout 65;

#gzip on;

include /etc/nginx/conf.d/*.conf;
}

cat /etc/nginx/conf.d/default.conf |egrep -v "^$|#"
server {
listen 80;
server_name localhost;
location / {
root /var/www/html;
index index.html index.htm;
}
location /fsconfsrv {
access_log /var/log/nginx/fsconfsrv-access.log;
error_log /var/log/nginx/fsconfsrv-error.log;
root /opt/API/fsconfsrv;

uwsgi_pass unix:/tmp/uwsgi-fsconfsrv.sock;
include uwsgi_params;
}
}

в логе uwsgi
[pid: 27160|app: 0|req: 6/14] 192.168.10.202 () {36 vars in 616 bytes}
[Tue Aug 4 19:52:03 2015] POST /fsconfsrv/dialplan.xml => generated 233
bytes in 0 msecs (HTTP/1.0 404) 2 headers in 72 bytes (1 switches on core 0)
[pid: 27159|app: 0|req: 8/15] 192.168.10.202 () {36 vars in 619 bytes}
[Tue Aug 4 19:53:19 2015] POST /fsconfsrv/dialplan.xml => generated 233
bytes in 0 msecs (HTTP/1.1 404) 2 headers in 72 bytes (2 switches on core 0)
[pid: 27160|app: 0|req: 7/16] 192.168.10.202 () {36 vars in 619 bytes}
[Tue Aug 4 19:54:49 2015] POST /fsconfsrv/dialplan.xml => generated 233
bytes in 0 msecs (HTTP/1.1 404) 2 headers in 72 bytes (1 switches on core 0)
[pid: 27160|app: 0|req: 8/17] 192.168.10.202 () {34 vars in 592 bytes}
[Tue Aug 4 19:55:27 2015] POST /fsconfsrv/dialplan.xml => generated 233
bytes in 0 msecs (HTTP/1.0 404) 2 headers in 72 bytes (1 switches on core 0)
[pid: 27160|app: 0|req: 9/18] 192.168.10.202 () {34 vars in 592 bytes}
[Tue Aug 4 19:58:25 2015] POST /fsconfsrv/dialplan.xml => generated 233
bytes in 0 msecs (HTTP/1.0 404) 2 headers in 72 bytes (1 switches on core 0)
[pid: 27160|app: 0|req: 10/19] 192.168.10.202 () {32 vars in 561 bytes}
[Tue Aug 4 19:59:55 2015] POST /fsconfsrv/dialplan.xml => generated 233
bytes in 0 msecs (HTTP/1.0 404) 2 headers in 72 bytes (1 switches on core 0)
видно, что размер каждый раз разный, хотя по факту он один.

пробовал курл с опциями -H "Content-Length:" --ignore-content-length -0
-kv - не помогло.
Сам запрос
curl -X POST "http://192.168.10.250/fsconfsrv/dialplan.xml" -d
"hostname=fs02.test.ru&section=dialplan&tag_name=&key_name=&key_value=&Event-Name=REQUEST_PARAMS&Core-UUID=5eb1d5da-3a05-11e5-8df2-97880de72862&FreeSWITCH-Hostname=fs02.test.ru&FreeSWITCH-Switchname=fs02.test.ru&FreeSWITCH-IPv4=222.333.444.152&FreeSWITCH-IPv6=%3A%3A1&Event-Date-Local=2015-08-04%2019%3A48%3A56&Event-Date-GMT=Tue,%2004%20Aug%202015%2016%3A48%3A56%20GMT&Event-Date-Timestamp=1438706936115775&Event-Calling-File=mod_dialplan_xml.c&Event-Calling-Function=dialplan_xml_locate&Event-Calling-Line-Number=606&Event-Sequence=11348&Channel-State=CS_ROUTING&Channel-Call-State=RINGING&Channel-State-Number=2&Channel-Name=sofia/internal/000*102%40siptest.test.ru%3A5060&Unique-ID=b20979a4-3ac8-11e5-9fde-97880de72862&Call-Direction=inbound&Presence-Call-Direction=inbound&Channel-HIT-Dialplan=true&Channel-Presence-ID=000*102%40siptest.test.ru&Channel-Call-UUID=b20979a4-3ac8-11e5-9fde-97880de72862&Answer-State=ringing&Caller-Direction=inbound&Caller-Logical-Direction=inbound&Caller-Username=000*102&Caller-Dialplan=XML&Caller-Caller-ID-Name=000*102&Caller-Caller-ID-Number=000*102&Caller-Orig-Caller-ID-Name=000*102&Caller-Orig-Caller-ID-Number=000*102&Caller-Network-Addr=222.333.444.150&Caller-ANI=000*102&Caller-Destination-Number=000*103&Caller-Unique-ID=b20979a4-3ac8-11e5-9fde-97880de72862&Caller-Source=mod_sofia&Caller-Context=public&Caller-Channel-Name=sofia/internal/000*102%40siptest.test.ru%3A5060&Caller-Profile-Index=1&Caller-Profile-Created-Time=1438706935935776&Caller-Channel-Created-Time=1438706935935776&Caller-Channel-Answered-Time=0&Caller-Channel-Progress-Time=0&Caller-Channel-Progress-Media-Time=0&Caller-Channel-Hangup-Time=0&Caller-Channel-Transfer-Time=0&Caller-Channel-Resurrect-Time=0&Caller-Channel-Bridged-Time=0&Caller-Channel-Last-Hold=0&Caller-Channel-Hold-Accum=0&Caller-Screen-Bit=true&Caller-Privacy-Hide-Name=false&Caller-Privacy-Hide-Number=false&variable_direction=inbound&variable_uuid=b20979a4-3ac8-11e5-9fde-97880de72862&variable_session_id=21&variable_sip_from_user=000*102&variable_sip_from_port=5060&variable_sip_from_uri=000*102%40siptest.test.ru%3A5060&variable_sip_from_host=siptest.test.ru&variable_channel_name=sofia/internal/000*102%40siptest.test.ru%3A5060&variable_sip_call_id=189733119113856-142091489831125%40192.168.10.125&variable_ep_codec_string=PCMA%408000h%4020i%4064000b,PCMU%408000h%4020i%4064000b&variable_sip_local_network_addr=222.333.444.152&variable_sip_network_ip=222.333.444.150&variable_sip_network_port=5060&variable_sip_received_ip=222.333.444.150&variable_sip_received_port=5060&variable_sip_via_protocol=udp&variable_sip_from_user_stripped=000*102&variable_sip_from_tag=1686613849&variable_sofia_profile_name=internal&variable_recovery_profile_name=internal&variable_sip_invite_record_route=%3Csip%3A**090802103%40222.333.444.150%3Blr%3Don%3Bftag%3D1686613849%3Bdid%3D0e91.03f1%3Bnat%3Dyes%3E&variable_sip_full_via=SIP/2.0/UDP%20222.333.444.150%3Bbranch%3Dz9hG4bK41a1.ad5187bf16a99226dc04230dcbcd09d1.0,SIP/2.0/UDP%20192.168.10.125%3A11360%3Brport%3D11360%3Breceived%3D222.333.555%3Bbranch%3Dz9hG4bK2230496193027817324&variable_sip_from_display=000*102&variable_sip_full_from=000*102%20%3Csip%3A000*102%40siptest.test.ru%3A5060%3E%3Btag%3D1686613849&variable_sip_to_display=**090802103&variable_sip_full_to=%22**090802103%22%20%3Csip%3A**090802103%40siptest.test.ru%3E&variable_sip_req_user=000*103&variable_sip_req_uri=000*103%40siptest.test.ru&variable_sip_req_host=siptest.test.ru&variable_sip_to_user=**090802103&variable_sip_to_uri=**090802103%40siptest.test.ru&variable_sip_to_host=siptest.test.ru&variable_sip_contact_params=alias%3D222.333.555~11360~1&variable_sip_contact_user=000*102&variable_sip_contact_port=11360&variable_sip_contact_uri=000*102%40192.168.10.125%3A11360&variable_sip_contact_host=192.168.10.125&variable_rtp_use_codec_string=OPUS,G722,PCMU,PCMA,GSM&variable_sip_user_agent=Fanvil%20C58/C58P%202.3.769.392&variable_sip_via_host=222.333.444.150&variable_max_forwards=69&variable_presence_id=000*102%40siptest.test.ru&variable_sip_h_X-Inring=pId%3D5%3BsrcId%3D5%3BsrcDid%3D1%3BsrcCid%3D12%3BsrcExt%3D000*102%40siptest.test.ru%3BsrcType%3Dphone%3BdestId%3D6%3BdestDid%3D1%3BdestCid%3D12%3BdestExt%3D000*103%40siptest.test.ru%3BdestType%3Dphone&variable_sip_h_P-Early-Media=supported&variable_switch_r_sdp=v%3D0%0D%0Ao%3D000*102%201896211919%201699612375%20IN%20IP4%20192.168.10.125%0D%0As%3DA%20conversation%0D%0Ac%3DIN%20IP4%20192.168.10.125%0D%0At%3D0%200%0D%0Am%3Daudio%2010054%20RTP/AVP%208%200%2018%20101%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%0D%0Aa%3Drtpmap%3A0%20PCMU/8000%0D%0Aa%3Drtpmap%3A18%20G729/8000%0D%0Aa%3Dfmtp%3A18%20annexb%3Dno%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0A&variable_endpoint_disposition=DELAYED%20NEGOTIATION&variable_call_uuid=b20979a4-3ac8-11e5-9fde-97880de72862&Hunt-Direction=inbound&Hunt-Logical-Direction=inbound&Hunt-Username=000*102&Hunt-Dialplan=XML&Hunt-Caller-ID-Name=000*102&Hunt-Caller-ID-Number=000*102&Hunt-Orig-Caller-ID-Name=000*102&Hunt-Orig-Caller-ID-Number=000*102&Hunt-Network-Addr=222.333.444.150&Hunt-ANI=000*102&Hunt-Destination-Number=000*103&Hunt-Unique-ID=b20979a4-3ac8-11e5-9fde-97880de72862&Hunt-Source=mod_sofia&Hunt-Context=public&Hunt-Channel-Name=sofia/internal/000*102%40siptest.test.ru%3A5060&Hunt-Profile-Index=1&Hunt-Profile-Created-Time=1438706935935776&Hunt-Channel-Created-Time=1438706935935776&Hunt-Channel-Answered-Time=0&Hunt-Channel-Progress-Time=0&Hunt-Channel-Progress-Media-Time=0&Hunt-Channel-Hangup-Time=0&Hunt-Channel-Transfer-Time=0&Hunt-Channel-Resurrect-Time=0&Hunt-Channel-Bridged-Time=0&Hunt-Channel-Last-Hold=0&Hunt-Channel-Hold-Accum=0&Hunt-Screen-Bit=true&Hunt-Privacy-Hide-Name=false&Hunt-Privacy-Hide-Number=false"

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

ошибка с curl(18)

denis August 04, 2015 01:20PM

Re: ошибка с curl(18)

Валентин Бартенев August 04, 2015 07:30PM

Re: ошибка с curl(18)

denis August 05, 2015 05:04AM

Re: ошибка с curl(18)

ALex_hha August 05, 2015 05:40AM

Re: ошибка с curl(18)

Валентин Бартенев August 05, 2015 09:42AM

Re: ошибка с curl(18)

Eugene Mychlo August 05, 2015 04:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 271
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready