Skip to content

Error("invalid type: null, expected a UUID string"... when querying #141

@gudjonragnar

Description

@gudjonragnar

I am trying to use this crate to talk to a gremlin server that is interfacing with an OrientDB graph. When I make simple requests to this gremlin server I get this response (I can provide the full stack trace if necessary):

hread 'test_gremlin_adapter' panicked at 'called `Result::unwrap()` on an `Err` value: Error("invalid type: null, expected a UUID string", line: 1, column: 17)', /home/gudjon/.cargo/registry/src/github.com-1ecc6299db9ec823/gremlin-client-0.8.0/src/aio/connection.rs:230:80
stack backtrace:
   0: rust_begin_unwind
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5
   1: core::panicking::panic_fmt
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:92:14
   2: core::option::expect_none_failed
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/option.rs:1329:5
   3: core::result::Result<T,E>::unwrap
             at /home/gudjon/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1037:23
   4: gremlin_client::aio::connection::receiver_loop::{{closure}}
             at /home/gudjon/.cargo/registry/src/github.com-1ecc6299db9ec823/gremlin-client-0.8.0/src/aio/connection.rs:230:50
   5: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
             at /home/gudjon/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
   6: tokio::runtime::task::core::CoreStage<T>::poll::{{closure}}
             at /home/gudjon/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.9.0/src/runtime/task/core.rs:147:17
   7: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
             at /home/gudjon/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.9.0/src/loom/std/unsafe_cell.rs:14:9
   8: tokio::runtime::task::core::CoreStage<T>::poll
             at /home/gudjon/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.9.0/src/runtime/task/core.rs:137:13
   9: tokio::runtime::task::harness::poll_future::{{closure}}
             at /home/gudjon/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.9.0/src/runtime/task/harness.rs:437:23
  10: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /home/gudjon/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:344:9
  11: std::panicking::try::do_call
             at /home/gudjon/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:379:40
...

The setup and query is as follows:

    let options = ConnectionOptions::builder()
            .host(host)
            .port(port)
            .build();
    let client = GremlinClient::connect(options).await?.alias(database)
    let g = traversal().with_remote_async(client);
    let res = g
        .v(())
        .has_label("Entity")
        .has((
            "some-field-here",
            "some-value-here",
        ))
        .values(vec_of_fields)
        .to_list()
        .await
        .expect("Query");

I ran the corresponding query using the gremlin-python library without any trouble, so I know the server is up and responding.
Any ideas what could be causing this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions