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

socks5 not working #1194

Closed
3 tasks done
NewUserHa opened this issue Nov 16, 2022 · 0 comments
Closed
3 tasks done

socks5 not working #1194

NewUserHa opened this issue Nov 16, 2022 · 0 comments

Comments

@NewUserHa
Copy link
Contributor

NewUserHa commented Nov 16, 2022

Prerequisites

Description

Configuration loaded.
2 of 2s.  error [Errno 11004] getaddrinfo failed> 1
2 of 2s.
2 of 2s.
2 of 2s.

2 of 2s.  error [Errno 11004] getaddrinfo failed> 1
...
urllib.error.URLError: <urlopen error [Errno 11004] getaddrinfo failed>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "PixivUtil2.py", line 1770, in <module>
  File "PixivUtil2.py", line 1627, in main
  File "PixivHelper.pyc", line 1254, in check_version
  File "PixivBrowserFactory.pyc", line 234, in open_with_retry
PixivException.PixivException: PixivException(9005 Failed to get page: ...
...

http can work,
socks5 can not.

And the reason is that set socket.getaddrinfo to "socket.getaddrinfo" mistakenly at:

# https://github.com/Nandaka/PixivUtil2/issues/592#issuecomment-659516296
if self._orig_getaddrinfo is None:
self._orig_getaddrinfo = socket.getaddrinfo
socket.getaddrinfo = self._orig_getaddrinfo

But However, the "getaddrinfo failed" bug was actually because of a pysocks bug issue.

Steps to Reproduce

  1. in config.ini set useProxy = True and proxyAddress = socks5://....
  2. run PixivUtil2.exe or PixivUtil2.main().
  3. n/a.

Expected behavior: enter main menu

Actual behavior: not working

Log file: no need

Versions

version 20221029

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

No branches or pull requests

2 participants