Skip to content

Conversation

@shanethacker
Copy link
Collaborator

Summary

  • Fix SSL connection errors appearing as successful searches with 0 results
  • Add proper error categorization and display for failed searches
  • Enable users to download failed searches for retry

Changes Made

  • Enhanced PubMedClient error handling: Added specific exception handling for ClientConnectionError, ClientTimeout, and ClientResponseError
  • Improved SearchResult model: Added is_failed and is_successful properties for cleaner error checking
  • Enhanced Results page UI:
    • Failed searches now clearly marked as "❌ Failed"
    • Added "Error Details" column showing specific error messages
    • New "Failed Searches" section with detailed error information
    • CSV download button for failed searches to enable retry

Problem Solved

Previously, when SSL connection errors occurred (like [SSL: APPLICATION_DATA_AFTER_CLOSE_NOTIFY]), searches would appear as "successful" with 0 results instead of being properly marked as failed. This was confusing for users who couldn't distinguish between legitimate 0 results vs connection failures.

Test Plan

  • Test with network connection issues to verify proper error handling
  • Verify failed searches show as "❌ Failed" in results table
  • Test CSV download functionality for failed searches
  • Confirm error details are displayed properly in UI

Related Issues

🤖 Generated with Claude Code

shanethacker and others added 3 commits June 12, 2025 01:56
- Add specific exception handling for connection, timeout, and HTTP errors in PubMedClient
- Add is_failed and is_successful properties to SearchResult model
- Enhance Results page to properly display failed searches with error details
- Add Failed Searches section with detailed error information
- Provide CSV download functionality for failed searches to enable retry
- Fix issue where SSL connection errors appeared as successful searches with 0 results

Closes #34 (partial implementation - provides foundation for retry functionality)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@shanethacker shanethacker merged commit e8c4376 into main Jun 13, 2025
4 of 6 checks passed
@shanethacker shanethacker deleted the fix/search-error-handling branch June 13, 2025 00:57
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