Closed sigmavirus24 closed 6 years ago
I think this is a problem with our 'Accept' header and this. If I just do
curl https://api.github.com/repos/rcbops/rpc-openstack/issues?per_page=100&state=closed&milestone=1061934
I get the results back that I expect. (That URL is generated by github3.py by doing
>>> i = r.issues(state='closed', milestone=1061934)
>>> next(i)
...
>>> i.last_response.request.url
Ah that curl request was wrong. You need to quote the URL to avoid the & being interpreted the wrong way by your shell. (This is why zsh is better folks)
curl 'https://api.github.com/repos/rcbops/rpc-openstack/issues?per_page=100&state=closed&milestone=1061934'
{
"message": "Validation Failed",
"errors": [
{
"value": "1061934",
"resource": "Issue",
"field": "milestone",
"code": "invalid"
}
],
"documentation_url": "https://developer.github.com/v3/issues/#list-issues"
}
Contacted GitHub support since this seems to be very clearly a problem with the API.
@sigmavirus24 has this issue been resolved on Github's end? I am facing the same problem and was wondering whether this needs to be followed up again.
Frankly @farhan3d I don't recall what the result of contacting GitHub support was. I ran into this over 3 years ago. Looking at the issue as I described it above, it looks like I'm using milestone.id
rather than milestone.number
. The API docs now describe the fact that it should be milestone.number
. Perhaps you are also doing the wrong thing?