gremlin-javascript icon indicating copy to clipboard operation
gremlin-javascript copied to clipboard

client.execute not working with Tinkerpop Server 3.2.3…

Open zedrdave opened this issue 8 years ago • 5 comments

When running either example code or npm run examples:node, the script seems to start fine and even connect to the socket (throws an error if the server is not running), but client.execute's callback never gets called.

Tinkerpop Server version is: 3.2.3 and started with: ./bin/gremlin-server.sh conf/gremlin-server-classic.yaml

Node version is: 7.0 (but also tried with v6.9.1: same results).

npm version is: 3.10.8

Connecting to the Tinkerpop Server with gremlin console or through the Python interface works fine.

zedrdave avatar Oct 28 '16 03:10 zedrdave

I'm having the same issue.

vsantosu avatar Oct 28 '16 07:10 vsantosu

This is related to the connection URL string which now requires to append /gremlin. I need to fix this, hopefully today.

On Friday, 28 October 2016, Victor O. Santos Uceta [email protected] wrote:

I'm having the same issue.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jbmusso/gremlin-javascript/issues/61#issuecomment-256855997, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMa1Pv5YNhGhgjekN-YJOWF4vfb3UYCks5q4aW5gaJpZM4KjCZr .

Jean-Baptiste

jbmusso avatar Oct 28 '16 08:10 jbmusso

Thanks Jean!

By the way, we are integrating your driver to our new database, it will be working soon 👍

Give it a look here: TruenoDB

vsantosu avatar Oct 28 '16 08:10 vsantosu

Indeed, adding this to the beginning of the GremlinClient constructor seems to fix the connection issue:

const { path = '/gremlin' } = options;

(it would probably be worth looking into ways to timeout and give some feedbacks, in cases like this where the path is not correct)

zedrdave avatar Oct 29 '16 06:10 zedrdave

Actually, it's not documented but you can supply a path option to the option object when instantiating a client. { path: '/gremlin' } should work.

jbmusso avatar Nov 13 '16 20:11 jbmusso