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

Issue when authenticating #821

Open
Techbrunch opened this issue Dec 13, 2024 · 0 comments
Open

Issue when authenticating #821

Techbrunch opened this issue Dec 13, 2024 · 0 comments
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@Techbrunch
Copy link

Techbrunch commented Dec 13, 2024

I'm running into an issue when authenticating, I keep getting Invalid API key found in file even though the API Key is valid (username is correctly returned.

➜  xxx git:(main) ✗ dnsx -auth

      _             __  __
   __| | _ __   ___ \ \/ /
  / _' || '_ \ / __| \  /
 | (_| || | | |\__ \ /  \
  \__,_||_| |_||___//_/\_\

		projectdiscovery.io

[ERR] Invalid API key found in file, please recheck or recreate your API key and retry.
[INF] Get your free api key by signing up at https://cloud.projectdiscovery.io
[*] Enter PDCP API Key (exit to abort):
[INF] Successfully logged in as (@xxx)
➜  xxx git:(main) ✗ echo "cloud.projectdiscovery.io"  | dnsx -silent  -resp -asn
cloud.projectdiscovery.io [A] [76.76.21.241]
cloud.projectdiscovery.io [A] [76.76.21.93]
➜  xxx git:(main) ✗ dnsx -auth

      _             __  __
   __| | _ __   ___ \ \/ /
  / _' || '_ \ / __| \  /
 | (_| || | | |\__ \ /  \
  \__,_||_| |_||___//_/\_\

		projectdiscovery.io

[ERR] Invalid API key found in file, please recheck or recreate your API key and retry.
[INF] Get your free api key by signing up at https://cloud.projectdiscovery.io
[*] Enter PDCP API Key (exit to abort):

Version 1.2.1

dnsx -version

      _             __  __
   __| | _ __   ___ \ \/ /
  / _' || '_ \ / __| \  /
 | (_| || | | |\__ \ /  \
  \__,_||_| |_||___//_/\_\

		projectdiscovery.io

[INF] Current Version: 1.2.1

I do have a file in ~/.pdcp:

➜  ~ ls ~/.pdcp/
total 8
drwx------    3 aloha  staff    96 Dec 13 10:42 .
drwx------+ 116 aloha  staff  3712 Dec 13 11:37 ..
-rw-------    1 aloha  staff   143 Dec 13 10:45 credentials.yaml
➜  ~ cat ~/.pdcp/credentials.yaml
- username: xxx
  email: xxx
  api-key: xxx
  server: https://api.projectdiscovery.io
@Techbrunch Techbrunch added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

1 participant