-
Notifications
You must be signed in to change notification settings - Fork 761
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
Creating search from string doesn't work #642
Comments
Heath123
changed the title
CReating search from string doesn't work
Creating search from string doesn't work
Feb 13, 2021
Looks like it actually needs this, not a string: |
There's also no |
data: {
message: "If you would like to help us test the Commit Search API during its preview period, you must specify a custom media type in the 'Accept' header. Please see the docs for full details.",
documentation_url: 'https://docs.github.com/rest/reference/search#search-commits'
} Huh, I guess I'll have to do that part manually? |
data: {
message: "API rate limit exceeded for 95.111.249.143. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
documentation_url: 'https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting'
} Is this my fault or is auth broken? |
const search = gh.search({})
search.__AcceptHeader = 'cloak-preview'
search._search('commits', { q: 'query' }, (err, result) => { console.log(err, result) }) This seems to work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to use the function http://github-tools.github.io/github/docs/3.2.3/GitHub.html#search (using 3.4.0 but the docs aren't up for that) like this:
gives this error:
The text was updated successfully, but these errors were encountered: