Skip to content

#1658: expand qosearch rescue to handle network and server errors#1759

Open
VasilevNStas wants to merge 1 commit into
zerocracy:masterfrom
VasilevNStas:1658-qosearch-rescue-expansion
Open

#1658: expand qosearch rescue to handle network and server errors#1759
VasilevNStas wants to merge 1 commit into
zerocracy:masterfrom
VasilevNStas:1658-qosearch-rescue-expansion

Conversation

@VasilevNStas

@VasilevNStas VasilevNStas commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Expands the rescue block in Jp.qosearch to catch additional error types that can occur during GitHub Search API calls:

  • Octokit::Unauthorized, Octokit::Forbidden — access denied / rate limiting
  • Octokit::ServerError — transient server-side errors (5xx)
  • Net::OpenTimeout, Net::ReadTimeout, SocketError, Errno::ECONNRESET — network-level failures

Previously only Octokit::TooManyRequests (search quota) was caught; all other exceptions propagated as crashes.

Closes #1658

@VasilevNStas

Copy link
Copy Markdown
Contributor Author

@yegor256 plz review

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.

Jp.qosearch only rescues Octokit::TooManyRequests - other transient errors propagate

1 participant