Concurrent queries to authentication required sever resulted in 401 error

Hey guys, playing around with gremlin & encountered this very odd error where concurrent queries will break authentication:
import gremlin from "gremlin";

const g = gremlin.process.AnonymousTraversalSource.traversal().withRemote(
new gremlin.driver.DriverRemoteConnection("ws://localhost:8182/gremlin", {
authenticator: new gremlin.driver.auth.PlainTextSaslAuthenticator(
"admin",
"administrator"
),
})
);

// This will throws: Failed to authenticate (401)
await Promise.all([g.V().toList(), g.V().toList()]);

// This works as expected
await g.V().toList();
await g.V().toList();
import gremlin from "gremlin";

const g = gremlin.process.AnonymousTraversalSource.traversal().withRemote(
new gremlin.driver.DriverRemoteConnection("ws://localhost:8182/gremlin", {
authenticator: new gremlin.driver.auth.PlainTextSaslAuthenticator(
"admin",
"administrator"
),
})
);

// This will throws: Failed to authenticate (401)
await Promise.all([g.V().toList(), g.V().toList()]);

// This works as expected
await g.V().toList();
await g.V().toList();
Solution:
Looks like a bug. Could you create an issue in https://issues.apache.org/jira/projects/TINKERPOP ?...
Solution
VK
Valentyn Kahamlyk63d ago
Looks like a bug. Could you create an issue in https://issues.apache.org/jira/projects/TINKERPOP ?
T
tien62d ago
Look like I need to request an account to be able to report issues, have done so. @Valentyn Kahamlyk are you able to approve my signup request for Jira? Else can you report the issue on my behalf? That would be great 2 🙏
S
spmallette62d ago
feel free to just make the request. someone on the PMC will get around to approving it it's odd that you mention this issue actually. i've been recently getting reports of 403 errors during heavy load with the Javascript driver. not sure if it's related to what you're seeing
YX
Yang Xia62d ago
Hello, there has not been any new user request coming in for Jira. Not sure if there are any delay in the system itself, but could you submit the request again? Make sure to select "tinkerpop" as the project. I have created an issue for this in the meanwhile for tracking, https://issues.apache.org/jira/browse/TINKERPOP-3061. I would still encourage to sign-up for an account, for any follow-ups on this or new issues encountered.
T
tien62d ago
Could be, can't tell cuz I don't know how gremlin server handle 401 & 403 differently 🙂 Thanks I just checked my mailbox & turn out there's an email verification needed that got lost in the spam folder 😅
YX
Yang Xia62d ago
No worries! Approved your request, you should be seeing a welcome email (hopefully not in spam again 😆
Want results from more Discord servers?
Add your server
More Posts
Discrepancy between console server id conventions and NeptuneSo I'm working with my test server and on Neptune--and I'm noticing a difference in the type of the how to connect the amothic/neptune container to the volume?I need to know which directory needs to attach to containeer. so that the data is stored safely. eveDocker yaml authentication settings (gremlinserver.authentication) questionDoes anyone have any experience setting up authentication on Docker by using the supplied .yaml fileGremlin Injection Attacks?Is anyone talking about or looking into attacks and mitigations for Gremlin Injection Attacks? That Returned vertex properties (JS client)Hi, I've got a question regarding the returned vertex value when using the JS client. How come non-aAnyone using Tinkerpop docker as a local Cosmos replacementRunning into some random issues. Looking for tips and tricks.Configuring Websockets connection to pass through a proxy serverHey, I'm working on making G.V() fully proxy aware, but I can't seem to get websockets connection tpython goblin vs spring-data-goblin for interactions with gremlin serverI want an OGM to interact with my gremlin server. What would be a good choice?Is there any open source version of data visualizer for aws neptune?Is there any open source version of data visualizer for aws neptune. I'll need it since it essentialDynamic select within query not working.Any insights or help would be greatly appreciated. I have to pass a list of lists in the format beAdding multiple properties to a vertex using gremlin-goHello Community, I have a question regarding how multiple properties can be added to a vertex using Is it possible to walk 2 different graphs using custom TraversalStrategy in Gremlin?I have 2 different graphs in 2 different Neptune cluster. Both of them can have few reference verticSideEffect a variable, Use it later after BarrierStep?I seek a query that builds a list and then needs to both sum the list's mapped values and divide theMemory issue on repeatI am traversing all nodes occuring in the same cluster given one of the nodes in that cluster. SurpWhich database should i use for my DJ set planning software?Hi, i want to develop a software that lets DJs plan a set (i.e. playlist) and i'm wondering if graphHow will i add unique values to the vertices or edge properties in NeptuneI can't get a doc regarding adding unique data through gremlin. Is there any way to do it, other thaNot getting result in hasId() but id().is() worksI don't get any response using g.V().hasId(48). But when i use g.V().id().is(48). it shows output. Sdotnet `Enumeration has not started. Call MoveNext` if I try to enumerate over a resultI recently try to use gremlin to created a graph and query this graph. Currently I get it working toI can't create an edge in aws neptune using gremlin. I can create vertices. but not edge.import { driver, process as gremlinProcess, structure } from "gremlin"; async function checkOut() {Iterating over responsesI've got a query akin to this in a python application using `gremlin-python`: ``` t = traversal().w