Skip to content

Conversation

@leskovecg
Copy link
Collaborator

@leskovecg leskovecg commented Jul 14, 2025

Issue

Fixes #1109 – Improves the error handling in the Document Embedding widget when there is no internet connection or when the server is not responding.


Description of changes

  • Added pre-check for internet and server availability before making a request.
  • Separated error messages for:
    • No internet connection
    • Invalid or unresponsive server

Additional notes

A few test failures appeared during CI that are unrelated to this PR and stem from other parts of the codebase (e.g., OWImportDocuments, CorpusViewer). I will address those in separate PRs to keep this one focused and clean.


Includes

  • Code changes
  • Tests
  • Documentation

Copy link
Member

@markotoplak markotoplak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most importantly, error messages should contain the actual server address that
we could not connect to. That alone would make connection errors easier to debug (for advanced users), as we discussed live.

If I remember our discussions with @VesnaT, main issues with the PR were not resolved. See the two code comments. If they are not clear, please contact me.

@leskovecg leskovecg force-pushed the fix-embedder-connection-tests branch 3 times, most recently from 8ab24b6 to e1ca92f Compare August 3, 2025 09:12
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.

Document Embedding: Improve error message

2 participants