Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

wrong exception thrown for incorrect password #286

Closed
sloanlance opened this issue Aug 25, 2016 · 4 comments
Closed

wrong exception thrown for incorrect password #286

sloanlance opened this issue Aug 25, 2016 · 4 comments
Assignees

Comments

@sloanlance
Copy link
Contributor

ArcRest or ArcRestHelper

arcresthelper.securityhandlerhelper.securityhandlerhelper.__init__()

Version or date of download

Either of:

Bug or Enhancement

🐛 Bug: When an incorrect password is used for authentication, a URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known> exception is thrown rather than one related to authentication.

Repo Steps or Enhancement details

from arcresthelper import orgtools
arcGIS = orgtools.orgtools({
    'username': 'my_username',
    'password': 'incorrect_password',
})

Complete output:

Traceback (most recent call last):
  File "test.py", line 4, in <module>
    'password': 'incorrect_password',
  File
  "/usr/lib/python2.7/site-packages/arcresthelper/securityhandlerhelper.py",
  line 359, in __init__
    "synerror": synerror,
arcresthelper.common.ArcRestHelperError: {'function':
'securityhandlerhelper_init', 'line': 'line 214', 'synerror':
'URLError: <urlopen error [Errno 8] nodename nor servname provided,
or not known>', 'filename':
'/usr/lib/python2.7/site-packages/arcresthelper/securityhandlerhelper.py'}
@MikeMillerGIS MikeMillerGIS self-assigned this Aug 27, 2016
@achapkowski
Copy link
Collaborator

closed due to inactivity.

@sloanlance
Copy link
Contributor Author

It's a bug, so it shouldn't be closed until it's fixed.

@MikeMillerGIS
Copy link
Member

Better messaging added

@sloanlance
Copy link
Contributor Author

👍 Thanks, @MikeMillerGIS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants