Skip to content

Document Embedding: better error messages #1133

Open
leskovecg wants to merge 1 commit into
biolab:masterfrom
leskovecg:fix-embedder-connection-tests
Open

Document Embedding: better error messages #1133
leskovecg wants to merge 1 commit into
biolab:masterfrom
leskovecg:fix-embedder-connection-tests

Conversation

@leskovecg

@leskovecg leskovecg commented Jul 14, 2025

Copy link
Copy Markdown
Collaborator

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

@markotoplak markotoplak left a comment

Copy link
Copy Markdown
Member

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.

Comment thread orangecontrib/text/vectorization/document_embedder.py Outdated
Comment thread orangecontrib/text/widgets/owdocumentembedding.py
@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