pwnedOrNot icon indicating copy to clipboard operation
pwnedOrNot copied to clipboard

When Running an Email Search Does not Find APIkey

Open g33k247 opened this issue 1 year ago • 5 comments

I have a valid APIkey.

Results: python3 pwnedornot.py --email [+] API Key Found... [+] Checking Breach status for [-] Status 401 : Unauthorised — either no API key was provided or it wasn't valid Note: The APIkey check only fails with email addresses. Using the --check on a domain works fine. 2022-09-04_06-57-28

Expected: Finds APIkey in config.json, retrieves information for email address successfully

Contents of config.json: { "api_key": "" }

  • there is 1 space between the colon and the start of the api key (with quotes)

g33k247 avatar Sep 04 '22 11:09 g33k247

@g33k247 edit the json file and add your key in the quotes, also the one space is not an issue

thewhiteh4t avatar Sep 04 '22 13:09 thewhiteh4t

I re-generated the APIkey and added a new one to the file between the quotes. I'm still seeing the 401 error.

g33k247 avatar Sep 05 '22 01:09 g33k247

@g33k247 I will test it out soon, also the domain check works without the api key

thewhiteh4t avatar Sep 05 '22 01:09 thewhiteh4t

@g33k247 is the key added in $HOME/.config/pwnedornot/config.json file?

thewhiteh4t avatar Sep 09 '22 00:09 thewhiteh4t

Ahhh, that was the issue. Thank-you!

g33k247 avatar Sep 09 '22 23:09 g33k247