You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/01/10 13:55:00 UTC

[jira] [Commented] (TINKERPOP-2130) Cannot instantiate DriverRemoteConnection without passing an options object

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

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

nivsherf commented on pull request #1038: TINKERPOP-2130 Fix default parameter assignment in Connection ctor
URL: https://github.com/apache/tinkerpop/pull/1038
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Cannot instantiate DriverRemoteConnection without passing an options object
> ---------------------------------------------------------------------------
>
>                 Key: TINKERPOP-2130
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2130
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: javascript
>    Affects Versions: 3.4.0
>            Reporter: Niv Sherf
>            Priority: Minor
>
> In gremlin-javascript, when instantiating a new DriverRemoteConnection without passing an options object, a TypeError is thrown.
> For example:
> {code:java}
> const dc = new DriverRemoteConnection(process.env.GRAPH_URL);{code}
> The above code results in an error being thrown:
> {noformat}
> TypeError: Cannot read property 'reader' of undefined{noformat}
>  This works fine:
> {code:java}
> const dc = new DriverRemoteConnection(process.env.GRAPH_URL, {});{code}
> Both calls work correctly when using 3.3.4. 



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