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

User search failed #43

Open
a88xss opened this issue Apr 12, 2022 · 2 comments
Open

User search failed #43

a88xss opened this issue Apr 12, 2022 · 2 comments

Comments

@a88xss
Copy link

a88xss commented Apr 12, 2022

When I run the tool to search selected users on GitHub I get the following error, any recommendations?
error-gitdorker

@soulinux
Copy link

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.

@akshay-kale-11
Copy link

I've generated the token and updated TOEKNSFILE. It still gives name 'new_url' is not defined.

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