Skip to content Skip to sidebar Skip to footer

Why Httpsconnectionpool Doesn't Work When Poolmanager Does?

I have tested a 'POST' request with both PoolManager and HTTPSConnectionPool. The first one works, the other throw me a : urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(hos

Solution 1:

https://some.url.com is not a hostname or IP address, it's a URL. So you're feeding the wrong information to HTTPSConnectionPool.

Furthermore, PoolManager and HTTPSConnectionPool are not at the same abstraction level. PoolManager manages ConnectionPool instances for you.

Post a Comment for "Why Httpsconnectionpool Doesn't Work When Poolmanager Does?"