Laws icon indicating copy to clipboard operation
Laws copied to clipboard

http连接异常,超时,重试最大次数

Open mechigonft opened this issue 1 year ago • 2 comments

TimeoutError: [Errno 110] Connection timed out urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86f5915d00>: Failed to establish a new connection: [Errno 110] Connection timed out File "/opt/conda/lib/python3.8/site-packages/urllib3/util/retry.py", line 515, in increment raise MaxRetryError(pool, url, reason) from reason # type: ignore[arg-type] urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='flk.npc.gov.cn', port=443): Max retries exceeded with url: /api/?xlwj=02&xlwj=03&xlwj=04&xlwj=05&xlwj=06&xlwj=07&xlwj=08&searchType=title%3Baccurate%3B1%2C3&sortTr=f_bbrq_s%3Bdesc&gbrqStart=&gbrqEnd=&sxrqStart=&sxrqEnd=&sort=true&page=1&size=10&=1704176175335 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86f5915d00>: Failed to establish a new connection: [Errno 110] Connection timed out'))

mechigonft avatar Jan 02 '24 06:01 mechigonft

将url直接贴到浏览器测试是可以的 直接测试是可以的

mechigonft avatar Jan 02 '24 06:01 mechigonft

和 #9 可能是一样的问题,可能是 cli 走了 proxy ,但浏览器没用? 之类的

RanKKI avatar Jan 02 '24 10:01 RanKKI