-
Notifications
You must be signed in to change notification settings - Fork 736
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
401 when trying to extract GHUser#type #1816
Comments
Unfortunately, I couldn't find a way to work around this by determining installation owner's account type, please let me know if there's something I missed UPD: Found a workaround:
|
Here's the problem: github-api/src/main/java/org/kohsuke/github/GHPerson.java Lines 342 to 344 in 3f99541
|
@bitwiseman got it. How should we solve this taking into consideration the fact that there are multiple fields like this? Should we track the "populated = true/false" flag for an entity or something else? |
@bitwiseman bump? |
@Haarolean Tracking What are your thoughts? |
Hi, a code like this
leads to 401:
There are a few issues here:
getAccount()
, so populating here is not necessary, perhaps.installation.getAccount().getUrl()
returnshttps://api.github.com/users/<ORGANIZATION_LOGIN>
, which perhaps is invalid, because it's an organization, not a user.The text was updated successfully, but these errors were encountered: