Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: HTTPS TLS ERROR #13

Open
mu0gua opened this issue Dec 3, 2021 · 1 comment
Open

RuntimeError: HTTPS TLS ERROR #13

mu0gua opened this issue Dec 3, 2021 · 1 comment

Comments

@mu0gua
Copy link

mu0gua commented Dec 3, 2021

Filepath: \dumpall-master\dumpall\dumper.py

async def fetch(self, url: str, times: int = 3) -> tuple:
        
        conn=aiohttp.TCPConnector(ssl=False)
        async with aiohttp.ClientSession(connector=conn) as session:
        
        ......    

don't aiohttp.TCPConnector(verify_ssl=False)

@mu0gua
Copy link
Author

mu0gua commented Dec 3, 2021

version: aiohttp-4.0.0a1

function: aiohttp.TCPConnector

class TCPConnector(BaseConnector):
    """TCP connector.

    verify_ssl - Set to True to check ssl certifications.
    fingerprint - Pass the binary sha256
        digest of the expected certificate in DER format to verify
        that the certificate the server presents matches. See also
        https://en.wikipedia.org/wiki/Transport_Layer_Security#Certificate_pinning
    resolver - Enable DNS lookups and use this
        resolver
    use_dns_cache - Use memory cache for DNS lookups.
    ttl_dns_cache - Max seconds having cached a DNS entry, None forever.
    family - socket address family
    local_addr - local tuple of (host, port) to bind socket to

    keepalive_timeout - (optional) Keep-alive timeout.
    force_close - Set to True to force close and do reconnect
        after each request (and between redirects).
    limit - The total number of simultaneous connections.
    limit_per_host - Number of simultaneous connections to one host.
    enable_cleanup_closed - Enables clean-up closed ssl transports.
                            Disabled by default.
    loop - Optional event loop.
    """

    def __init__(self, *,
                 use_dns_cache: bool=True, ttl_dns_cache: int=10,
                 family: int=0,
                 ssl: Union[None, bool, Fingerprint, SSLContext]=None,
                 local_addr: Optional[Tuple[str, int]]=None,
                 resolver: Optional[AbstractResolver]=None,
                 keepalive_timeout: Union[None, float, object]=sentinel,
                 force_close: bool=False,
                 limit: int=100, limit_per_host: int=0,
                 enable_cleanup_closed: bool=False) -> None:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant