Open jeremyyeo opened 7 months ago
PYODBC allows to capture exceptions listed in here - https://github.com/mkleehammer/pyodbc/wiki/Exceptions Note that HYT00 captures a range of errors including
Above examples you specified are in the bucket of
PYODBC does not provide any other information except the code and error bucket. It does not provide more than above messages you are seeing as far as I know.
Any thoughts?
Many scenarios that result in connection errors / issues appear to return the same exact error message to the user:
If we could return something more descriptive, it would help the user debug what the actual issue is.
First setup a baseline working profile:
(1) Invalid secret
Remove a single character from a valid
secret
:(2) Invalid client
Remove a single character from a valid
client_id
:(3) Invalid username / password
Switch to a different authentication method and use an invalid user/pass (p.s. I actually don't know if my fabric server has got user/pass enabled or not and if that is even a thing but I simply swapped to
authentication: ActiveDirectoryPassword
and made up some user/password combination).