Comments (2)
You're right. Anyhow "swallows" the error produced by Tonic, the gRPC framework used in Rust for our case. While we're considering adding our own error pub Enum, it would be a breaking change.
The only way we know how to obtain the error from Anyhow is to downcast it, so for now, try the next:
if let Err(e) = client.upsert_points_blocking("not_found_collection", points, None).await {
if let Some(te) = e.downcast_ref::<tonic::Status>() {
println!("{:?}", te.code() == tonic::Code::NotFound);
println!("{:?}", te.message());
println!("{:?}", te.metadata());
}
}
We will consider adding this as a helper in the library, which would not be breaking but optional.
from rust-client.
Ok. Thanks.
from rust-client.
Related Issues (20)
- example needs " on_disk:None" | else no compile HOT 1
- Outdated example
- Range type should have the ability to hold both f64 and i64 fields HOT 1
- Issues connecting to Qdrant Cloud using client. HOT 2
- Use a more fitting error type HOT 5
- [bug] upsert_points_blocking() api blocks indefinitely without any clear debug message HOT 3
- Grpc-status header missing when using qdrant-cloud: HOT 1
- Better documentation HOT 5
- Any plan to support on the spot text embedding generation like FastEmbed?
- Backward compatibility
- Bug: `update_collection` only accepts `optimizer_config` parameter
- Local Qdrant HOT 2
- How can I get Vec<f32> embedding data from RetrievedPoint? The data of RetrievedPoint type has a "vector_options" of VectorsOptions, but I get no idea to get data from the "vector_options". HOT 1
- Upsert operation is not being performed HOT 4
- Transport Error HOT 2
- Is the QdrantClient thread safe?
- feature request: add seperate function for full-text-search for filters HOT 1
- Semver breakage when updating qdrant-client from 1.3 to 1.7 HOT 1
- Vectors only support `f32` - should also support `f64` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-client.