You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many scenarios that result in connection errors / issues appear to return the same exact error message to the user:
02:22:32 dbt was unable to connect to the specified database.
The database returned the following error:
>Database Error
('HYT00', '[HYT00] [Microsoft][ODBC Driver 18 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')
If we could return something more descriptive, it would help the user debug what the actual issue is.
$ dbt debug
02:16:29 Running with dbt=1.7.11
02:16:29 dbt version: 1.7.11
02:16:29 python version: 3.11.2
02:16:29 python path: /Users/jeremy/src/dbt-basic/venv_dbt_1.7.latest/bin/python
02:16:29 os info: macOS-13.4.1-x86_64-i386-64bit
02:16:29 Using profiles dir at /Users/jeremy/.dbt
02:16:29 Using profiles.yml file at /Users/jeremy/.dbt/profiles.yml
02:16:29 Using dbt_project.yml file at /Users/jeremy/src/dbt-basic/dbt_project.yml
02:16:29 adapter type: fabric
02:16:29 adapter version: 1.7.4
02:16:29 Configuration:
02:16:29 profiles.yml file [OK found and valid]
02:16:29 dbt_project.yml file [OK found and valid]
02:16:29 Required dependencies:
02:16:29 - git [OK found]
02:16:29 Connection:
02:16:29 server: 5xxoty5si6telax6vdkh6id534-fmmrkvhkp7pu7edhh7uldtp2my.datawarehouse.pbidedicated.windows.net
02:16:29 database: fabric_test_instance
02:16:29 schema: dbt_jyeo
02:16:29 UID: None
02:16:29 client_id: clien
02:16:29 authentication: ActiveDirectoryServicePrincipal
02:16:29 encrypt: True
02:16:29 trust_cert: False
02:16:29 retries: 1
02:16:29 login_timeout: 0
02:16:29 query_timeout: 0
02:16:29 Registered adapter: fabric=1.7.4
02:17:13 Connection test: [ERROR]
02:17:13 1 check failed:
02:17:13 dbt was unable to connect to the specified database.
The database returned the following error:
>Database Error
('HYT00', '[HYT00] [Microsoft][ODBC Driver 18 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')
Check your database credentials and try again. For more information, visit:
https://docs.getdbt.com/docs/configure-your-profile
(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).
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.
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:
$ dbt debug 02:11:47 Running with dbt=1.7.11 02:11:47 dbt version: 1.7.11 02:11:47 python version: 3.11.2 02:11:47 python path: /Users/jeremy/src/dbt-basic/venv_dbt_1.7.latest/bin/python 02:11:47 os info: macOS-13.4.1-x86_64-i386-64bit 02:11:47 Using profiles dir at /Users/jeremy/.dbt 02:11:47 Using profiles.yml file at /Users/jeremy/.dbt/profiles.yml 02:11:47 Using dbt_project.yml file at /Users/jeremy/src/dbt-basic/dbt_project.yml 02:11:47 adapter type: fabric 02:11:47 adapter version: 1.7.4 02:11:47 Configuration: 02:11:47 profiles.yml file [OK found and valid] 02:11:47 dbt_project.yml file [OK found and valid] 02:11:47 Required dependencies: 02:11:47 - git [OK found] 02:11:47 Connection: 02:11:47 server: lorem-ipsum.datawarehouse.pbidedicated.windows.net 02:11:47 database: fabric_test_instance 02:11:47 schema: dbt_jyeo 02:11:47 UID: None 02:11:47 client_id: client 02:11:47 authentication: ActiveDirectoryServicePrincipal 02:11:47 encrypt: True 02:11:47 trust_cert: False 02:11:47 retries: 1 02:11:47 login_timeout: 0 02:11:47 query_timeout: 0 02:11:47 Registered adapter: fabric=1.7.4 02:11:59 Connection test: [OK connection ok] 02:11:59 All checks passed!
(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).The text was updated successfully, but these errors were encountered: