Skip to content

cannot unmarshal PropertyList #37

@jhole89

Description

@jhole89

Hi,

First of all thank you for putting the work in on this project, its great and I would like to use it more, but I'm really struggling getting some of the described functionality working with a standard Tinkerpop/Gremlin instance.

Currently if I try to use the UnmarshalPropertyList functionality I receive an error of:

error unmarshalling data: {"type":"UNMARSHAL_ERROR"},{"function":"UnmarshalIDList"},{"rawBytes":"..."},{"error":"json: cannot unmarshal number into Go struct field [email protected].@value of type model.PropertyIDValue"}

To reproduce:

  1. Run official gremlin-server: docker run -d -p 8182:8182 tinkerpop/gremlin-server
  2. Run https://github.com/northwesternmutual/grammes/blob/master/examples/vertex-properties-example/main.go

Error received:

error unmarshalling data: {"type":"UNMARSHAL_ERROR"},{"function":"UnmarshalIDList"},{"rawBytes":"{"@type":"g:List","@value":[{"@type":"g:VertexProperty","@value":{"id":{"@type":"g:Int64","@value":93},"label":"firstname","value":"damien"}},{"@type":"g:VertexProperty","@value":{"id":{"@type":"g:Int64","@value":94},"label":"middlename","value":"socrates"}},{"@type":"g:VertexProperty","@value":{"id":{"@type":"g:Int64","@value":95},"label":"age","value":{"@type":"g:Int32","@value":19}}},{"@type":"g:VertexProperty","@value":{"id":{"@type":"g:Int64","@value":96},"label":"lastname","value":"stamates"}}]}"},{"error":"json: cannot unmarshal number into Go struct field [email protected].@value of type model.PropertyIDValue"}Label                Value   

I appreciate that the tinkerpop/gremlin-server container is the latest image (3.4.8 at time of writing), but I couldn't find anything saying which versions of Gremlin were/weren't supported.

Versions:

  • Go 1.15
  • Gremlin 3.4.8
  • Grammes 1.1.2

Any idea what may be going on here? Happy to do a quick patch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions