[ 
https://issues.apache.org/jira/browse/TINKERPOP-2763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Mallette closed TINKERPOP-2763.
---------------------------------------
    Fix Version/s: 3.5.4
         Assignee: Stephen Mallette
       Resolution: Fixed

Fixed with 
https://github.com/apache/tinkerpop/commit/29346f53b8955326964c54b5ffed04698a16c797

> client.submitAsync returns None value
> -------------------------------------
>
>                 Key: TINKERPOP-2763
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2763
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: driver, python
>    Affects Versions: 3.5.2, 3.5.3
>            Reporter: John Pao
>            Assignee: Stephen Mallette
>            Priority: Minor
>             Fix For: 3.5.4
>
>
> In gremlin-python driver versions 3.5.2 and 3.5.3, the client.submit_async() 
> function was added and the client.submitAsync() function was changed to call 
> into it and warn about future deprecation.
>  
> The line in submitAsync which invokes the new function submit_async does not 
> return the future back to the caller, resulting in the caller receiving a 
> None object.
> [https://github.com/apache/tinkerpop/blob/8b30b63d00630d3b6c6bd170e8168aed7c69abff/gremlin-python/src/main/python/gremlin_python/driver/client.py#L152]
>  
> This in turn means that an application which upgrades from 3.4.x to latest 
> 3.5.x will break when trying to read result from the response future.
>  
> > AttributeError: 'NoneType' object has no attribute 'result'
>  
> This issue is fixed in 3.6.x with the addition of an explicit return 
> statement, but has persisted from driver version 3.5.2 to 3.5.3.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to