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

SSLError #346

Open
c-w-m opened this issue Jan 12, 2023 · 0 comments
Open

SSLError #346

c-w-m opened this issue Jan 12, 2023 · 0 comments

Comments

@c-w-m
Copy link

c-w-m commented Jan 12, 2023

Behavior:

  1. behind company proxy
  2. command

pipreqs --force <module_path

  1. response
    ...
    File "pipreqs.py", line 179, in get_imports_info
    response = requests.get(
    ...
    raise SSLError(e, request=request)
    requests.exceptions.SSLError: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: ...

This may also be related to:


Fix Proposal:

  • new arg ( --verify ) to pass CA_BUNDLE which gets passed to request.get( e, proxy, verify)

I've made this change in my fork under branch 'fix_SSLError' and it works for my use case

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