Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 3

Deleted/renamed user not redirecting in github api v4

I've had an issue with some old usernames not redirecting with a couple projects. For example, here are some old links.

https://github.com/Trampss/trampss-redux-saga-tester 

https://github.com/sirqiao/redux-helpers

Both have deleted/renamed project owners (and the first has a different repo name), however the github api v4 is not redirecting.

repository(owner: "Trampss", name: "trampss-redux-sage-tester")
repository(owner: "sirqiao", name: "redux-helpers")

 

But to no avail.

"message": "Could not resolve to a User with the login of 'Trampss'."
"message": "Could not resolve to a User with the login of 'sirqiao'."

 

The v3 rest api seems to work fine with both projects. Is this a bug or just not supported in the graphql version? Any help would be appreciated.

2 Replies
Highlighted
Community Manager
Message 2 of 3

Re: Deleted/renamed user not redirecting in github api v4

Hi @nmay231,

 

Thank you for being here! I've passed this along to the developers who are investigating. As far as I can tell, this behavior could be a bug or a missing feature, as you mentioned on REST the call behaves as expected.

 

Thanks for letting us know!


I hope this helps,
Andrea

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Highlighted
Copilot Lvl 2
Message 3 of 3

Re: Deleted/renamed user not redirecting in github api v4

I'm facing the same issue.

 

Query

 

query {
  repository(name: "codesandbox-importers", owner: "codesandbox-app") {
    nameWithOwner
    forkCount
    watchers {
      totalCount
    }
    issues {
      totalCount
    }
    stargazers {
      totalCount
    }
  }
}

Result

 

{
  "data": {
    "repository": null
  },
  "errors": [
    {
      "type": "NOT_FOUND",
      "path": [
        "repository"
      ],
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "message": "Could not resolve to a User with the username 'codesandbox-app'."
    }
  ]
}