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

action hangs when auth failed #47

Open MakDon opened 2 years ago

MakDon commented 2 years ago

the code that's not working:

client, err := grammes.DialWithWebSocket("ws://127.0.0.1:8182",grammes.WithTimeout(time.Minute))
vert, avErr := client.AddVertex("user","uid", usr.UID)

When auth is required by the server, AddVertex would freeze instead of returning an error. And timeout is also not working. Expect: return auth required error or timeout error.