接口测试 MaxRetryError at /xxxx/ HTTPSConnectionPool (host='xxxxxx', port=443): Max retries exceeded with url: /xxx/xxxx (Caused by NewConnectionError ('<urllib3.connection.VerifiedHTTPSConnection object at 0x0607F5B0>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed'))

MmoMartin · August 30, 2019 · Last by hellohell replied at September 02, 2019 · 2322 hits

因为用的是python3 使用django报了这个问题

MaxRetryError at /xxxxx/
HTTPSConnectionPool(host='xxxxx', port=443): Max retries exceeded with url:xxxx (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0607F5B0>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed'))

连接数的问题d的只需要将urllib3.PoolManager() -》 urllib3.PoolManager(num_pools=10000)

共收到 1 条回复 时间 点赞

urllib3.PoolManager方法使用时应传参num_pools;
如果帖子没有其他的意思,真是 。。。。

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up