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

Ivan Daschinskiy resolved IGNITE-14162.
---------------------------------------
    Resolution: Fixed

> Python thin gives ambiguous message when using a wrong username/password to 
> connect
> -----------------------------------------------------------------------------------
>
>                 Key: IGNITE-14162
>                 URL: https://issues.apache.org/jira/browse/IGNITE-14162
>             Project: Ignite
>          Issue Type: Improvement
>          Components: python, thin client
>    Affects Versions: python-0.3.4
>            Reporter: Igor Sapego
>            Assignee: Igor Sapego
>            Priority: Major
>             Fix For: python-0.4.0
>
>
> Starting a server w/authentication, then connecting to it via a python thin 
> client w/an incorrect username and password.
> The message/stacktrace is ambiguous leading clients to believe that they've 
> connected, and something is amiss w/the server.
> {code:python}client = Client(username='incorrect-user-name', 
> password='incorrect-password', use_ssl=False)
> client.connect('127.0.0.1', 10800)
> #client(nodes)
> print("connected to: ".format(client))
> print("cache names: ".format(client.get_cache_names)){code}
> the stacktrace is :
> {code:python}connected to: 
> Traceback (most recent call last):
> cache names: 
>   File "C:/dev/python-thin-client/examples/get_and_put.py", line 30, in 
> <module>
>     print(client.get_cache_names())
>   File "C:\dev\python-thin-client\pyignite\utils.py", line 249, in ste_wrapper
>     result = fn(*args, **kwargs)
>   File "C:\dev\python-thin-client\pyignite\client.py", line 521, in 
> get_cache_names
>     return cache_get_names(self.random_node)
>   File "C:\dev\python-thin-client\pyignite\utils.py", line 273, in wrapper
>     return func(obj, *args, **kwargs)
>   File "C:\dev\python-thin-client\pyignite\client.py", line 222, in 
> random_node
>     raise ReconnectError('Can not reconnect: out of nodes.') from None
> pyignite.exceptions.ReconnectError: Can not reconnect: out of nodes.{code}
> *ReconnectError: Can not reconnect: out of nodes exception*: allows the  user 
> to make the conclusion that the connection is successful, but something is 
> wrong with the server.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to