graphQL API: GitHub error: Moved Permanently

I have a problem with the issueByInfo function: for a specific issue, I get this error back:

{
 "data": null,
 "errors": [
   {
     "message": "GitHub error. Message: {\"message\":\"Moved Permanently\",\"url\":\"https://api.github.com/repos/[redacted]/[redacted]/issues/[redacted]\",\"documentation_url\":\"https://docs.github.com/v3/#http-redirects\"}",
     "locations": [
       {
         "line": 1,
         "column": 2
       }
     ],
     "path": [
       "issueByInfo"
     ]
   }
 ]
}

This was the query used:

{issueByInfo(repositoryGhId: [redacted], issueNumber: [redacted]) {
    estimate { value }
}}

This is a private repo, so I can’t post the issue url in public, but other issues of the same repository don’t give this error. But there’s one specific issue that consistently returns this error.

Update: found that there’s indeed an issue that redirects, but I don’t think a http redirect should throw an error.