no error message when the email is incorrect at login
kermorvant@arius-2 ~ % arkindex login
Arkindex instance URL (arkindex.teklia.com):
Loading API client… Done!
E-mail address: kemrorvant@teklia.com
Password:
Traceback (most recent call last):
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ File "/usr/local/bin/arkindex", line 8, in <module> │
│ 5 from arkindex_cli.cli import main │
│ 6 if __name__ == '__main__': │
│ 7 sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) │
│ ❱ 8 sys.exit(main()) │
│ File "/usr/local/lib/python3.7/site-packages/arkindex_cli/cli.py", line 46, in main │
│ 43 if "func" in args: │
│ 44 # Run the subcommand's function │
│ 45 try: │
│ ❱ 46 status = args.pop("func")(**args) │
│ 47 parser.exit(status=status) │
│ 48 except KeyboardInterrupt: │
│ 49 # Just quit silently on ^C instead of displaying a long traceback │
│ File "/usr/local/lib/python3.7/site-packages/arkindex_cli/commands/login.py", line 46, in run │
│ 43 while not password: │
│ 44 password = ask("Password", hidden=True) │
│ 45 │
│ ❱ 46 token = cli.login(email, password)["auth_token"] │
│ 47 │
│ 48 print("[bright_green bold]Authentication successful") │
│ 49 while not slug: │
│ File "/usr/local/lib/python3.7/site-packages/arkindex/client.py", line 176, in login │
│ 173 Login to Arkindex using an email/password combination. │
│ 174 This helper method automatically sets the client's authentication settings with th│
│ 175 """ │
│ ❱ 176 resp = self.request('Login', body={'email': email, 'password': password}) │
│ 177 if 'auth_token' in resp: │
│ 178 self.transport.session.auth.token = resp['auth_token'] │
│ 179 return resp │
│ File "/usr/local/lib/python3.7/site-packages/arkindex/client.py", line 193, in request │
│ 190 if self.sleep_duration: │
│ 191 logger.debug('Delaying request by {:f} seconds...'.format(self.sleep_duration)│
│ 192 sleep(self.sleep_duration) │
│ ❱ 193 return super().request(operation_id, *args, **kwargs) │
│ 194 │
│ 195 def custom_request(self, operation_id, content=None, encoding='text/plain', **params):│
│ 196 """ │
│ File "/usr/local/lib/python3.7/site-packages/apistar/client/client.py", line 109, in request │
│ 106 (content, encoding) = self.get_content_and_encoding(link, params) │
│ 107 │
│ 108 return self.transport.send( │
│ ❱ 109 method, url, query_params=query_params, content=content, encoding=encoding │
│ 110 ) │
│ File "/usr/local/lib/python3.7/site-packages/apistar/client/transports.py", line 78, in send │
│ 75 if 400 <= response.status_code <= 599: │
│ 76 title = "%d %s" % (response.status_code, response.reason) │
│ 77 raise exceptions.ErrorResponse( │
│ ❱ 78 title=title, status_code=response.status_code, content=result │
│ 79 ) │
│ 80 │
│ 81 return result │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ErrorResponse:
Edited by Christopher Kermorvant