Open sumitnagal opened 3 years ago
I don't see anything wrong in the snippets you posted.
I tried putting them together into a complete program, and can't reproduce the problem with it. It seems to work fine:
Are you sure your values for org
and language
are okay? Maybe they have extra quotes or so.
If you're still running into this, please provide a complete program that reproduces it.
In general, a surefire way to debug these kind of issues is to inspect the GraphQL query generated and sent by the library. That can be done by modifying its source code or providing an http.Client
with a custom Transport
that prints the request body.
Looks like the issue is coming due to not resetting token, I am getting below response on a few of git repo, however, others are giving me the right response {"search":{"repositoryCount":0,"edges":[]}}
I have modified the query a little bit to fine search githubv4.String(fmt.Sprintf(
repo:%s, githubv4.String("shurcooL"), githubv4.String("githubv4"))),
So I am not sure how I will reset the token, so get the desire response.
I have my code for fetching the information from repo based on programming language
Executing them but not getting any result back
See Below
While from Graphql
I am getting this
Any help, as I have seen most of the closed tickets, and implemented what has been suggested.