curl: (56) Recv failure: Connection reset by peer on flask_restful on AWS

时间:2017-07-12 08:03:26

标签: python amazon-web-services curl flask flask-restful

*   Trying x.x.x.x...
* TCP_NODELAY set
* Connected to x.x.x.x (x.x.x.x) port 443 (#0)
> GET /sents HTTP/1.1
> Host: x.x.x.x:443
> User-Agent: curl/7.51.0
> Accept: */*
> 
* Recv failure: Connection reset by peer
* Curl_http_done: called premature == 1
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer

^^ Port 80 works fine, 443 and any other port fails. I've tried using flask_sslify on the app, but it fails anyways (the redirect comes out for port 80 though)

ufw status shows 443 as open / lsof shows the app as listening

Not sure if it's a AWS-specific problem, everything works fine on my local machine.

Any help would be greatly appreciated.

0 个答案:

没有答案