HTTPSConnectionPool(host='xxxxx', port=443): Max retries exceeded with url:xxxxxxxx (Caused by NewConnectionError('


 

HTTPSConnectionPool(host='f6ws-sha8re-o88k.s3.ama66zaws.com', port=443): Max retries exceeded with url: /uploads/website/auctions/items/full/3076380_1.jpg 
(Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003C5F3C8>:
Failed to establish a new connection: [Errno 10060]
',))

 

  http連接太多沒有關閉導致的

  1、增加重試連接次數

    requests.adapters.DEFAULT_RETRIES = 5

  2、關閉多余的連接

    s = requests.session()

    s.keep_alive = False

  3、升級requests

    pip install --upgrade requests

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM