Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3588

How to catch errors with dynamic batch import

$
0
0

Hello @md1639,

Welcome to our community! it’s great to have you here :hugs:

You can consider capture more information about errors and failed objects by implementing error handling and logging during the batch process by using client.batch.failed_objects & client.batch.failed_references.

Error Handling →

You will find a good example in the documentation:

failed_objs_b = client.batch.failed_objects # Get failed objects
failed_refs_b = client.batch.failed_references # Get failed references

Additionally, Weaviate Pythin Client, the following exception handling can help raises various error conditions:

  • weaviate.exceptions.WeaviateConnectionError for failed connections.
  • weaviate.exceptions.WeaviateQueryError for failed queries.
  • weaviate.exceptions.WeaviateBatchError for failed batch operations.
  • weaviate.exceptions.WeaviateClosedClientError for operations on a closed client.

You can review this module which defines the exceptions that can be raised by the client library.

Exception handling →


Viewing all articles
Browse latest Browse all 3588

Trending Articles