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 ?...
Jump to solution
6 Replies
Solution
Valentyn Kahamlyk
Looks like a bug. Could you create an issue in https://issues.apache.org/jira/projects/TINKERPOP ?
Painguin
PainguinOP10mo 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 🙏
spmallette
spmallette10mo 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
Yang Xia
Yang Xia10mo 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.
Painguin
PainguinOP10mo 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 😅
Yang Xia
Yang Xia10mo 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