Replies: 4 comments 5 replies
-
The driver returns several diag recs; do you see those in the ODBC trace? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would like to capture these at the connection failure time programmatically and appropriately surface user-friendly messages. Any specific options to figure out? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am asking if you see all the diag recs in the ODBC trace. |
Beta Was this translation helpful? Give feedback.
5 replies
-
@v-chojas , any inputs on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environment
Issue
I am using Azure Service Principal Authentication with pyodbc. what is the best way to surface issue when user provides incorrect client id or secret. Right now, any error during connection is throwing
('HYT00', '[HYT00] [Microsoft][ODBC Driver 18 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')
I tried to capture errors from azure identity SDK using
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError
but no luck. Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions