Skip to content

set_excetion instead of set_exception in invocation.py #191

@fikisipi

Description

@fikisipi

I tried the python client (version 3.12.2) on my laptop, set it it to sleep and logged in again.

There was a heartbeat problem which I guess is expected, but during that error a typo causes another error:

ERROR: [3.12.2] [dev] [hz.client_0] Error in Reactor Thread
Traceback (most recent call last):
  File "C:\Users\...\venv\lib\site-packages\hazelcast\reactor.py", line 46, in _loop
    self._check_timers()
  File "C:\Users\...\venv\lib\site-packages\hazelcast\reactor.py", line 66, in _check_timers
    if timer.check_timer(now):
  File "C:\Users\...\venv\lib\site-packages\hazelcast\reactor.py", line 277, in check_timer
    self.timer_ended_cb()
  File "C:\Users\...\venv\lib\site-packages\hazelcast\invocation.py", line 102, in invoke_smart
    self._send(invocation, invocation.connection, ignore_heartbeat)
  File "C:\Users\...\venv\lib\site-packages\hazelcast\invocation.py", line 188, in _send
    self._handle_exception(invocation, TargetDisconnectedError("%s has stopped heart beating." % connection))
  File "C:\Users\...\venv\lib\site-packages\hazelcast\invocation.py", line 242, in _handle_exception
    invocation.set_excetion(TimeoutError(
AttributeError: 'Invocation' object has no attribute 'set_excetion'

As you can see set_excetion is a typo (should be exception) and the Invocation object doesn't have that function and raises an AttributeError.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions