jbmusso / gremlin-javascript

JavaScript tools for graph processing in Node.js and the browser inspired by the Apache TinkerPop API
MIT License
214 stars 63 forks source link

Unable to send a new query over wss before the last one is returned #110

Open baptisteArno opened 6 years ago

baptisteArno commented 6 years ago

I am currently using an instance of JanusGraph (0.1.1) on IBM Cloud for a project. I succesfully connected to this instance using the library. Everything works greate but I can't send multiple queries at the same time. Until a first query response is returned, every other query in the same Websocket fails with error : Failed to authenticate (Error 401).

This problem surely comes from our JanusGraph server configuration but I was wondering if you ever ran into the same kind of problem.

ahmed-serag commented 6 years ago

I have the same issue here, you got any solutions ?

jbmusso commented 6 years ago

Thanks for reporting this. I'm unsure about what could be going wrong. What version of gremlin-javascript do you use? CC @pluradj

ahmed-serag commented 6 years ago

I'm using version 2.7.0

pluradj commented 6 years ago

@jbmusso The Error: Failed to authenticate (Error 401) is reproducible with the OSS Gremlin Server. I used apache-tinkerpop-gremlin-server-3.2.3 and npm install gremlin@2.7.0 --save

Check out my gist.