You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "stephen mallette (JIRA)" <ji...@apache.org> on 2018/12/19 17:48:00 UTC

[jira] [Closed] (TINKERPOP-2096) gremlinpython: AttributeError when connection is closed before result is received

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

stephen mallette closed TINKERPOP-2096.
---------------------------------------
       Resolution: Fixed
         Assignee: stephen mallette
    Fix Version/s: 3.3.5
                   3.4.0

I provided a better error than before by throwing a {{GremlinServerError}} thus avoiding the more ambiguous {{AttributeError}}:

https://github.com/apache/tinkerpop/commit/79b5e1cf169f7b9dd53d3c7e642f00d2a97dcc08

> gremlinpython: AttributeError when connection is closed before result is received 
> ----------------------------------------------------------------------------------
>
>                 Key: TINKERPOP-2096
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2096
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 3.4.0
>            Reporter: Bjarte Johansen
>            Assignee: stephen mallette
>            Priority: Major
>             Fix For: 3.4.0, 3.3.5
>
>
> When a connection to the server is closed after a write has happened, the call to `tornado.websocket.read_message' returns `None` resulting in a `AttributeError: 'NoneType' object has no attribute 'decode'` when calling `message.decode('utf-8')` in `Protocol.data_recieved`.



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