Patrick Freed

Results 40 comments of Patrick Freed
trafficstars

The timeout being hit here is `serverSelectionTimeoutMS`, which has a default value of 30 seconds. This timeout governs how long the MongoDB driver will wait until a suitable server is...

So I wasn't able to reproduce the issue using the `resolve` utility, since it only seems to happen when performing an SRV/TXT lookup after a TXT/SRV lookup, and `resolve` can...

Note that `mongodb` has support for tokio 1.0 starting in `2.0.0-alpha` (which is basically just the 1.x driver with tokio 1.0 support). Later 2.0 pre-releases (`2.0.0-beta.3` being the most recent)...

I believe the error you're seeing may not be related to wasm or `bson`, but instead that you need to enable the `v4` feature flag for your dependency on the...

FYI, 2.4.0 has been released with the `uuid-1` flag.

@bugproof This was a bug actually that has since been fixed in `2.0.0-beta.3` and `1.2.3`. Note that the `decimal128` feature flag has been removed in `2.0.0-beta.3` (see #282), so you'll...

As a workaround today, you can use [`spawn_blocking`](https://docs.rs/tokio/1.11.0/tokio/task/fn.spawn_blocking.html) (if on tokio): ```rust let socket = std::net::TcpStream::connect("127.0.0.1:8080")?; let doc = tokio::task::spawn_blocking(|| { Document::from_reader(socket) }).await??; println!("{}", doc); ``` As for a long...

Hi @AlexKovalevych! So right now, the only format we support for deserializing arbitrary BSON to an arbitrary serialization format is [Extended JSON](https://docs.mongodb.com/manual/reference/mongodb-extended-json/), which is what you're seeing there with the...

In BSON, the only supported top-level type is a document, unlike JSON (for example) which supports any of its types at the top level (see https://bsonspec.org/spec.html and https://www.json.org/json-en.html). For this...

To reduce the amount of code required to achieve this, you could use [`#[serde(serialize_with)]`](https://serde.rs/field-attrs.html#serialize_with) on the date field. I filed [RUST-506](https://jira.mongodb.org/browse/RUST-506) to track the status of work on this. Thank...