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

Error: httpx.ConnectTimeout #464

Open
Trial-new opened this issue Oct 28, 2023 · 0 comments
Open

Error: httpx.ConnectTimeout #464

Trial-new opened this issue Oct 28, 2023 · 0 comments

Comments

@Trial-new
Copy link

Describe the bug
On running "ghunt email xxx@gmail.com" i get an error ending with "httpx.ConnectTimeout"

To Reproduce
Steps to reproduce the behavior:

  1. Install ghunt

  2. run ghunt login successfully

  3. ghunt email xxx@gmail.com"

  4. .d8888b. 888 888 888
    d88P Y88b 888 888 888
    888 888 888 888 888
    888 8888888888 888 888 88888b. 888888
    888 88888 888 888 888 888 888 "88b 888
    888 888 888 888 888 888 888 888 888
    Y88b d88P 888 888 Y88b 888 888 888 Y88b.
    "Y8888P88 888 888 "Y88888 888 888 "Y888 v2

        By: mxrch (🐦 @mxrchreborn)
    

    Support my work on GitHub Sponsors ! 💖

[+] Authenticated !
trio.MultiError: Cancelled(), Cancelled()

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
yield
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/backends/trio.py", line 126, in connect_tcp
with trio.fail_after(timeout_or_inf):
File "/usr/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/trio/_timeouts.py", line 108, in fail_at
raise TooSlowError
trio.TooSlowError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions
yield
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 253, in handle_async_request
raise exc
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 237, in handle_async_request
response = await connection.handle_async_request(request)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_async/connection.py", line 86, in handle_async_request
raise exc
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_async/connection.py", line 63, in handle_async_request
stream = await self._connect(request)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_async/connection.py", line 111, in _connect
stream = await self._network_backend.connect_tcp(**kwargs)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/backends/auto.py", line 29, in connect_tcp
return await self._backend.connect_tcp(
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/backends/trio.py", line 125, in connect_tcp
with map_exceptions(exc_map):
File "/usr/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc)
httpcore.ConnectTimeout

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/int/.local/bin/ghunt", line 8, in
sys.exit(main())
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/ghunt.py", line 15, in main
parse_and_run()
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/cli.py", line 31, in parse_and_run
process_args(args)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/cli.py", line 41, in process_args
trio.run(email.hunt, None, args.email_address, args.json)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/trio/_core/_run.py", line 1946, in run
raise runner.main_task_outcome.error
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/modules/email.py", line 31, in hunt
is_found, target = await people_pa.people_lookup(as_client, email_address, params_template="max_details")
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/apis/peoplepa.py", line 104, in people_lookup
await person._scrape(as_client, person_data)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/parsers/people.py", line 150, in _scrape
await person_photo._scrape(as_client, photo_data, "profile_photo")
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/parsers/people.py", line 60, in _scrape
self.isDefault, self.flathash = await is_default_profile_pic(as_client, self.url)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/helpers/utils.py", line 63, in is_default_profile_pic
flathash = await get_url_image_flathash(as_client, image_url)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/helpers/utils.py", line 52, in get_url_image_flathash
req = await as_client.get(image_url)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_client.py", line 1757, in get
return await self.request(
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_client.py", line 1533, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_client.py", line 1620, in send
response = await self._send_handling_auth(
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_client.py", line 1648, in _send_handling_auth
response = await self._send_handling_redirects(
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_client.py", line 1685, in _send_handling_redirects
response = await self._send_single_request(request)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_client.py", line 1722, in _send_single_request
response = await transport.handle_async_request(request)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_transports/default.py", line 352, in handle_async_request
with map_httpcore_exceptions():
File "/usr/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/home/int/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc

Expected behavior
Normal output of the user

Screenshots
Yes

System (please complete the following information):

  • Ubuntu
  • Python 3.10.12

Additional context
Add any other context about the problem here.
Screenshot from 2023-10-28 16-04-18

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