Skip to content

fix: handle 404 for bot-type user accounts#42

Open
Madoshakalaka wants to merge 1 commit intoJamesSingleton:mainfrom
Madoshakalaka:fix-bot-user-404
Open

fix: handle 404 for bot-type user accounts#42
Madoshakalaka wants to merge 1 commit intoJamesSingleton:mainfrom
Madoshakalaka:fix-bot-user-404

Conversation

@Madoshakalaka
Copy link
Copy Markdown

I'm a maintainer from Yew where we encountered this recently probably because of GitHub's new agent features.

yewstack/yew#4036

The GitHub API returns 404 when calling /users/{username}/orgs for bot-type accounts (e.g. Copilot). Instead of crashing with an unhandled exception, this PR makes it catch the 404 and return "false".

The GitHub API returns 404 when calling /users/{username}/orgs for
bot-type accounts (e.g. Copilot). Instead of crashing with an
unhandled exception, catch the 404 and return "false".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant