Skip to content
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

User object is outdated #343

Open
myConsciousness opened this issue Dec 13, 2022 · 3 comments
Open

User object is outdated #343

myConsciousness opened this issue Dec 13, 2022 · 3 comments

Comments

@myConsciousness
Copy link

The structure of the User object does not seem to match the structure of the JSON returned from GitHub.

  {
    "login": "asliddinxanov",
    "id": 100646459,
    "node_id": "U_kgDOBf--Ow",
    "avatar_url": "https://avatars.githubusercontent.com/u/100646459?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/asliddinxanov",
    "html_url": "https://github.com/asliddinxanov",
    "followers_url": "https://api.github.com/users/asliddinxanov/followers",
    "following_url": "https://api.github.com/users/asliddinxanov/following{/other_user}",
    "gists_url": "https://api.github.com/users/asliddinxanov/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/asliddinxanov/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/asliddinxanov/subscriptions",
    "organizations_url": "https://api.github.com/users/asliddinxanov/orgs",
    "repos_url": "https://api.github.com/users/asliddinxanov/repos",
    "events_url": "https://api.github.com/users/asliddinxanov/events{/privacy}",
    "received_events_url": "https://api.github.com/users/asliddinxanov/received_events",
    "type": "User",
    "site_admin": false
  }
@github-actions
Copy link

👋 Thanks for reporting! @robrbecker will take a look.

@tyler-jewell
Copy link

@myConsciousness
Copy link
Author

@tyler-jewell ,

No, I used github.users.listCurrentUserFollowing().

Most of the items were returned as null even though they existed, so I debugged it and found that the JSON returned from GitHub and the structure of the User object provided by this package were different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants