northwesternmutual / grammes

A Go package built to communicate with Apache TinkerPop™ Graph computing framework using Gremlin; a graph traversal language used by graph databases such as JanusGraph®, MS Cosmos DB, AWS Neptune, and DataStax® Enterprise Graph.
Apache License 2.0
125 stars 45 forks source link

VertexByID() error #25

Open juggle73 opened 4 years ago

juggle73 commented 4 years ago

There is an error when calling VertexByID()

client, err := grammes.DialWithWebSocket(addr)
if err != nil {
    log.Fatal(err)
}
defer client.Close()

verts, err := client.AllVertices()
if err != nil {
    log.Fatal(err)
}

for _, vert := range verts {
    v, err := client.VertexByID(vert.ID())
    if err != nil {
        log.Fatal(err)
    }

    fmt.Println(v.ID())
}

Output error:

{"type":"NETWORK_ERROR"},
{"status code":"499"},
{"error":"INVALID REQUEST ARGUMENTS"},
{"original error":"{"requestId":"2087e5b6-bb73-11ea-8e83-8c8590b34803","code":"UnsupportedOperationException","detailedMessage":"Expected an id that is convertible to String but received class java.lang.Integer"}"}