[ 
https://issues.apache.org/jira/browse/TINKERPOP-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16453557#comment-16453557
 ] 

ASF GitHub Bot commented on TINKERPOP-1944:
-------------------------------------------

Github user aaronjwood commented on the issue:

    https://github.com/apache/tinkerpop/pull/852
  
    I ran into this issue earlier today but hit another one once I had exported 
this myself in my local copy of the library: 
https://groups.google.com/forum/#!topic/gremlin-users/YyHXS579cyw
    
    To sum it up, when using `DriverRemoteConnection` an error is thrown about 
an invalid OpProcessor being used:
    ```
    Error: Server error (no request information): Invalid OpProcessor requested 
[null] (499)
        at Object.keys.forEach.requestId 
(/Users/woodaaron/Code/src/api-gw/node_modules/gremlin/lib/driver/driver-remote-connection.js:137:15)
        at Array.forEach (<anonymous>)
        at DriverRemoteConnection._handleMessage 
(/Users/woodaaron/Code/src/api-gw/node_modules/gremlin/lib/driver/driver-remote-connection.js:132:45)
        at WebSocket.DriverRemoteConnection._ws.on.data 
(/Users/woodaaron/Code/src/api-gw/node_modules/gremlin/lib/driver/driver-remote-connection.js:68:41)
        at WebSocket.emit (events.js:180:13)
        at Receiver._receiver.onmessage 
(/Users/woodaaron/Code/src/api-gw/node_modules/gremlin/node_modules/ws/lib/WebSocket.js:141:47)
        at Receiver.dataMessage 
(/Users/woodaaron/Code/src/api-gw/node_modules/gremlin/node_modules/ws/lib/Receiver.js:380:14)
        at Receiver.getData 
(/Users/woodaaron/Code/src/api-gw/node_modules/gremlin/node_modules/ws/lib/Receiver.js:330:12)
        at Receiver.startLoop 
(/Users/woodaaron/Code/src/api-gw/node_modules/gremlin/node_modules/ws/lib/Receiver.js:165:16)
        at Receiver.add 
(/Users/woodaaron/Code/src/api-gw/node_modules/gremlin/node_modules/ws/lib/Receiver.js:139:10)
    ```


> JavaScript GLV: DriverRemoteConnection is not exported in the root module
> -------------------------------------------------------------------------
>
>                 Key: TINKERPOP-1944
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1944
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: javascript
>    Affects Versions: 3.2.8, 3.3.2
>            Reporter: Jorge Bay
>            Priority: Major
>             Fix For: 3.3.3, 3.2.9
>
>
> {{DriverRemoteConnection}} should be exported inside the driver module.
> Users can still access the {{DriverRemoteConnection}} class using the path:
> {code:javascript}
> const DriverRemoteConnection = 
> require('./node_modules/gremlin/lib/driver/driver-remote-connection.js');
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to