Gremlin 升级小精灵会中断连接

Gremlin 升级小精灵会中断连接,gremlin,amazon-neptune,Gremlin,Amazon Neptune,使用版本3.2.10时,以下功能可正确连接到我的Neptune群集: export const initGremlinClient = () => { try { const dc = new DriverRemoteConnection( `ws://${process.env.NEPTUNE_ENDPOINT_URI}:${ process.env.NEPTUNE_ENDPOINT_PORT }/gremlin` );

使用版本
3.2.10
时,以下功能可正确连接到我的Neptune群集:

export const initGremlinClient = () => {
  try {
    const dc = new DriverRemoteConnection(
      `ws://${process.env.NEPTUNE_ENDPOINT_URI}:${
        process.env.NEPTUNE_ENDPOINT_PORT
      }/gremlin`
    );
    const graph = new Graph();
    return {
      g: graph.traversal().withRemote(dc),
      closeGremlinConnection: () => dc.close()
    };
  } catch (error) {
    console.log("[GREMLIN INIT ERROR]", error);
    throw new Error(error);
  }
};
如果升级到版本
^3.4.0
,则会引发以下错误:

“错误:TypeError:无法读取未定义的属性'reader'”

这是在NodeJS上的Lambda函数中运行的
8.10
。这些文件似乎没有指出这个版本中有什么新的东西,AWS也没有指定与Neptune的兼容性问题。我有这个错误的配置吗

编辑:添加堆栈跟踪

{
  "errorMessage": "Cannot read property 'reader' of undefined",
  "errorType": "TypeError",
  "stackTrace": [
    "new Connection (/var/task/gremlinTest/node_modules/gremlin/lib/driver/connection.js:77:28)",
    "new Client (/var/task/gremlinTest/node_modules/gremlin/lib/driver/client.js:46:24)",
    "new DriverRemoteConnection (/var/task/gremlinTest/node_modules/gremlin/lib/driver/driver-remote-connection.js:53:20)",
    "exports.handler (/var/task/gremlinTest/index.js:6:14)"
  ]
}

最近接受了此修补程序,并根据此修补程序很快将在3.3.6和3.4.1中发布。

您可以共享原始错误的堆栈跟踪吗?@jorgebg我已经添加了它。如果我将空对象作为第二个参数传递到
new DriverRemoteConnection
中,它会工作。看起来是这样的问题:是的,它是!谢谢,你应该把它作为答案贴出来。