Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot unmarshal PropertyList #37

Open
jhole89 opened this issue Oct 8, 2020 · 1 comment
Open

cannot unmarshal PropertyList #37

jhole89 opened this issue Oct 8, 2020 · 1 comment

Comments

@jhole89
Copy link

jhole89 commented Oct 8, 2020

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.

@MakDon
Copy link

MakDon commented Feb 16, 2022

i met the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants