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

Defining a port results in a type error #189

Closed
advanced4 opened this issue Oct 20, 2020 · 0 comments
Closed

Defining a port results in a type error #189

advanced4 opened this issue Oct 20, 2020 · 0 comments
Labels

Comments

@advanced4
Copy link

Describe the bug
A TypeError is thrown if the port is specified on the command line

To Reproduce
Steps to reproduce the behavior:

  1. python3 torBot.py -u zqktlwiuavvvqqt4ybvgvi7tyo4hjl5xgfuvpdf6otjiycgwqbym2qad.onion --gather -p 9052

Expected behavior
It to not throw a TypeError

Additional context

/mnt/d/git/personal/TorBot/src$ python3 torBot.py -u zqktlwiuavvvqqt4ybvgvi7tyo4hjl5xgfuvpdf6otjiycgwqbym2qad.onion --gather -p 9052
Traceback (most recent call last):
  File "torBot.py", line 261, in <module>
    main()
  File "torBot.py", line 142, in main
    collect_data()
  File "/mnt/d/git/personal/TorBot/src/modules/collect_data.py", line 60, in collect_data
    resp = requests.get('https://thehiddenwiki.org')
  File "/home/me/.local/lib/python3.8/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/home/me/.local/lib/python3.8/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/me/.local/lib/python3.8/site-packages/requests/sessions.py", line 524, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/me/.local/lib/python3.8/site-packages/requests/sessions.py", line 637, in send
    r = adapter.send(request, **kwargs)
  File "/home/me/.local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/home/me/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 597, in urlopen
    httplib_response = self._make_request(conn, method, url,
  File "/home/me/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/home/me/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 839, in _validate_conn
    conn.connect()
  File "/home/me/.local/lib/python3.8/site-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/home/me/.local/lib/python3.8/site-packages/urllib3/connection.py", line 158, in _new_conn
    conn = connection.create_connection(
  File "/home/me/.local/lib/python3.8/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
  File "/home/me/.local/lib/python3.8/site-packages/socks.py", line 47, in wrapper
    return function(*args, **kwargs)
  File "/home/me/.local/lib/python3.8/site-packages/socks.py", line 787, in connect
    super(socksocket, self).connect(proxy_addr)
TypeError: an integer is required (got type str)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants