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

KeyError: 'people' when searching by email #467

Closed
ranlo opened this issue Nov 9, 2023 · 2 comments
Closed

KeyError: 'people' when searching by email #467

ranlo opened this issue Nov 9, 2023 · 2 comments

Comments

@ranlo
Copy link

ranlo commented Nov 9, 2023

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. login
  2. run ghunt email

Expected behavior
Expected the usual response for a valid email

Screenshots

Traceback (most recent call last):
File "/Users/root/.local/bin/ghunt", line 8, in
sys.exit(main())
^^^^^^
File "/Users/root/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/ghunt.py", line 15, in main
parse_and_run()
File "/Users/root/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/cli.py", line 31, in parse_and_run
process_args(args)
File "/Users/root/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/cli.py", line 41, in process_args
trio.run(email.hunt, None, args.email_address, args.json)
File "/Users/root/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/trio/_core/_run.py", line 1946, in run
raise runner.main_task_outcome.error
File "/Users/root/.local/pipx/venvs/ghunt/lib/python3.11/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 "/Users/root/.local/pipx/venvs/ghunt/lib/python3.11/site-packages/ghunt/apis/peoplepa.py", line 103, in people_lookup
person_data = list(data["people"].values())[0]
~~~~^^^^^^^^^^
KeyError: 'people'

System (please complete the following information):

  • MacOS 12.2.1
  • Python 3.11.6 (main, Oct 2 2023, 20:14:46) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin

Additional context
added debug prints; the response is

{'error': {'code': 400, 'message': 'Request contains an invalid argument.', 'status': 'INVALID_ARGUMENT'}}

@rick417
Copy link

rick417 commented Nov 12, 2023

this has been fixed in the latest version, just do an update and it will work

@ranlo ranlo mentioned this issue Nov 13, 2023
@ranlo
Copy link
Author

ranlo commented Nov 13, 2023

works fine after the update

@ranlo ranlo closed this as completed Nov 13, 2023
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

2 participants