[ https://issues.apache.org/jira/browse/TINKERPOP-2751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Templin updated TINKERPOP-2751: -------------------------------------- Description: Hi, I am trying to get transactions working for a while now, but no matter what i do, i can't get the transaction to commit. h3. My Setup: * Running gremlin-server 3.6.0 in Docker on localhost using the default-configuration. * Javascript-Gremlin-lib 3.6.0 h3. Problem: Im executing the following code: {code:js} const dc = new DriverRemoteConnection('ws://localhost:8182/gremlin', { 'rejectUnauthorized': false}); const g = traversal().withRemote(dc); const tx = g.tx(); const gtx = tx.begin(); try { await gtx.addV('person').iterate(); await gtx.addV('software').iterate(); await tx.commit(); // stuck here console.log('here') } catch (err) { await tx.rollback(); } finally { await dc.close(); }{code} The code just will never get past 'await tx.commit()', no error, nothing. It just hangs up there. The code before that is properly executed and the Graph contains both vertices. Am I doing anything wrong there, or are connections not working properly? Hope you can help me with that. Kind regards, Stefan was: Hi, I am trying to get transactions working for a while now, but no matter what i do, i can't get the transaction to commit. h3. My Setup: * Running gremlin-server 3.6.0 in Docker on localhost using the default-configuration. * Javascript-Gremlin-lib 3.6.0 h3. Problem: Im executing the following code: {code:js} const dc = new DriverRemoteConnection('ws://localhost:8182/gremlin', { 'rejectUnauthorized': false}); const g = traversal().withRemote(dc); const tx = g.tx(); const gtx = tx.begin(); try { await gtx.addV('person').iterate(); await gtx.addV('software').iterate(); await tx.commit(); console.log('here') } catch (err) { await tx.rollback(); } finally { await dc.close(); }{code} The code just will never get past 'await tx.commit()', no error, nothing. It just hangs up there. The code before that is properly executed and the Graph contains both vertices. Am I doing anything wrong there, or are connections not working properly? Hope you can help me with that. Kind regards, Stefan > Transaction: tx.commit() hangs up in javascript client-lib > ---------------------------------------------------------- > > Key: TINKERPOP-2751 > URL: https://issues.apache.org/jira/browse/TINKERPOP-2751 > Project: TinkerPop > Issue Type: Bug > Components: javascript, server > Affects Versions: 3.6.0 > Reporter: Stefan Templin > Priority: Minor > Labels: Transaction > > Hi, > I am trying to get transactions working for a while now, but no matter what i > do, i can't get the transaction to commit. > h3. My Setup: > * Running gremlin-server 3.6.0 in Docker on localhost using the > default-configuration. > * Javascript-Gremlin-lib 3.6.0 > h3. Problem: > Im executing the following code: > > {code:js} > const dc = new DriverRemoteConnection('ws://localhost:8182/gremlin', { > 'rejectUnauthorized': false}); > const g = traversal().withRemote(dc); > const tx = g.tx(); > const gtx = tx.begin(); > try { > await gtx.addV('person').iterate(); > await gtx.addV('software').iterate(); > await tx.commit(); > // stuck here > console.log('here') > } catch (err) { > await tx.rollback(); > } finally { > await dc.close(); > }{code} > The code just will never get past 'await tx.commit()', no error, nothing. It > just hangs up there. The code before that is properly executed and the Graph > contains both vertices. > Am I doing anything wrong there, or are connections not working properly? > Hope you can help me with that. > > Kind regards, > Stefan -- This message was sent by Atlassian Jira (v8.20.7#820007)