edgedb / edgedb-rust

The official Rust binding for EdgeDB
https://edgedb.com
Apache License 2.0
208 stars 26 forks source link

ProtocolEncodingError: object data size does not match its shape #242

Closed zchenb closed 1 year ago

zchenb commented 1 year ago

I am not sure whether this is a bug or simply a query error.

On the latest mater

Query

edgedb> select Test3 {computed := .<test3ref[is Test4]};
edgedb error: ProtocolEncodingError: object data size does not match its shape

schema:

type Test3{
 name : str {
    default := "test3"
 }

}

type Test4 {
    name : str {
        default := "test4"
    }

    test3ref : Test3 {
        property note := .name
    }
}
elprans commented 1 year ago

Looks like a Rust binding bug.

tailhook commented 1 year ago

What your versions of the EdgeDB server and Rust bindings? I can't reproduce that on latest bindings and 3.0-rc.1.

zchenb commented 1 year ago

So it seems that there is a mismatch between the cli and the server version.

I pulled the latest version and rebuilt the entire db and cli. The issue no longer exists.