Skip to content

fix: improve search result waiting logic and timeout#5

Merged
sonesuke merged 1 commit intomainfrom
fix/search-timeout-handling
Dec 21, 2025
Merged

fix: improve search result waiting logic and timeout#5
sonesuke merged 1 commit intomainfrom
fix/search-timeout-handling

Conversation

@sonesuke
Copy link
Copy Markdown
Owner

Description

This PR addresses issues where specific search queries (e.g., 'chatbot analytics') were timing out or failing silently.

Changes

  • Increased the search page wait timeout from 30s to 60s to accommodate slower loads.
  • Implemented explicit detection of the 'No results' message ('Sorry, your query returned no results') to fail fast instead of waiting for a timeout.
  • Refactored the search result checking logic into an external script for better maintainability.

Verification

Verified with the following previously failing queries:

  • cargo run -- search --query "natural language interface data visualization" --before "2023-10-13" --limit 15
  • cargo run -- search --query "chatbot analytics" --before "2023-10-13" --limit 15

Both now return results (or handle empty results gracefully) without error.

- Increase search timeout to 60 seconds
- Explicitly handle 'no results' page to avoid unnecessary waiting
- Extract search result checking script to src/scripts/check_search_results.js
@sonesuke sonesuke merged commit e164ba8 into main Dec 21, 2025
@sonesuke sonesuke deleted the fix/search-timeout-handling branch December 21, 2025 02:51
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