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

Getting error #41

Open
stish834 opened this issue Jan 13, 2022 · 2 comments
Open

Getting error #41

stish834 opened this issue Jan 13, 2022 · 2 comments

Comments

@stish834
Copy link


/ _ ___ ___ __ / / /__
/ , / -|-</ // / / __(-<
//||_//_,//_/__/


[+] SUCCESS | RESULTS RETURNED
[#] NEUTRAL | NO RESULTS RETURNED
[-] FAILURE | RATE LIMITS OR API FAILURE

QUERY PROVIDED: *.com

[-] Traceback (most recent call last):
File "GitDorker.py", line 404, in
sys.stdout.write(colored('%s' % new_url, 'white'))
NameError: name 'new_url' is not defined

@a88xss
Copy link

a88xss commented Apr 12, 2022

Hi, I have a similar error when I search for specific users, any recommendations?

[-] Traceback (most recent call last):
File "GitDorker.py", line 527, in
sys.stdout.write(colored('%s' % new_url, 'white'))
NameError: name 'new_url' is not defined

@soulinux
Copy link

soulinux commented Apr 18, 2022

Error

[+] SUCCESS | RESULTS RETURNED 
[#] NEUTRAL | NO RESULTS RETURNED
[-] FAILURE | RATE LIMITS OR API FAILURE 

QUERY PROVIDED: domain

[-] Traceback (most recent call last):
GitDorker/GitDorker.py", line 404, in <module> sys.stdout.write(colored('%s' % new_url, 'white'))
NameError: name 'new_url' is not defined

Troubleshooting

$ curl https://api.github.com/search/code    
{
  "message": "Validation Failed",
  "errors": [
    {
      "resource": "Search",
      "field": "q",
      "code": "missing"
    }
  ],
  "documentation_url": "https://docs.github.com/v3/search"
}

This error is related to failure to authenticate on Github with the given Token.
It is necessary to generate a new token:

https://github.com/settings/tokens

Creating a token

1. Verify your email address, if it hasn't been verified yet.

2. In the upper-right corner of any page, click your profile photo, then click Settings.

3. In the left sidebar, click Developer settings.

4. In the left sidebar, click Personal access tokens.

5. Click Generate new token.

6. Give your token a descriptive name.

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

3 participants