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

Catch generic server exceptions when connecting to GitHub #16834

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

eduardoj
Copy link
Member

Exceptions with code 504 were not catched.

Rescuing from generic exceptions in the range of 500..599 with Octokit::ServerError prevents from crashing without notifying back OBS.

See #16691. Related to #12661.

To see exceptions supported by Octokit: https://github.com/octokit/octokit.rb/blob/71e3d209400ff29440d87581db90314b6272355b/lib/octokit/error.rb#L19-L37

Octokit::ServerError exceptions: https://github.com/octokit/octokit.rb/blob/71e3d209400ff29440d87581db90314b6272355b/lib/octokit/error.rb#L343-L356

@github-actions github-actions bot added the Frontend Things related to the OBS RoR app label Sep 11, 2024
@eduardoj eduardoj force-pushed the fix/issue_16691 branch 3 times, most recently from a99bba2 to 5907616 Compare September 11, 2024 13:29
@eduardoj eduardoj marked this pull request as ready for review September 11, 2024 13:49
Exceptions with code 504 were not catched.

Rescuing from generic exceptions in the range of 500..599 with the
Octokit::ServerError prevents from crashing without notifying back OBS.
@eduardoj eduardoj merged commit 853b0e5 into openSUSE:master Sep 11, 2024
21 checks passed
@eduardoj eduardoj deleted the fix/issue_16691 branch September 11, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend Things related to the OBS RoR app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants