You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Igor Sapego (Jira)" <ji...@apache.org> on 2021/02/11 09:01:00 UTC
[jira] [Created] (IGNITE-14162) Python thin gives ambiguous message
when using a wrong username/password to connect
Igor Sapego created IGNITE-14162:
------------------------------------
Summary: 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
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)