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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VertexByID() error

juggle73 opened this issue · comments

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"}"}