dbt-labs / dbt-core

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.
https://getdbt.com
Apache License 2.0
9.96k stars 1.63k forks source link

[Bug] Error message on Versionless not helpful for Credential Issue #10804

Closed jennlw closed 1 month ago

jennlw commented 1 month ago

Is this a new bug in dbt-core?

Current Behavior

On Versionless, while in the IDE, error comes up when trying to run commansd, even 'dbt ls' will not work. Encountered an error: Compilation Error 'None' has no attribute 'endswith'

If you switch version to 1.7 the error becomes: Encountered an error: Runtime Error Credentials in profile "user", target "default" invalid: None is not of type 'string'.

The 1.7 message helped user to resolve the issue by going to their Credentials and selecting "Connect Snowflake Account"

Expected Behavior

Error code is helpful in pointing user in the right direction to troubleshoot and resolve.

Steps To Reproduce

I have been trying to reproduce, but I'm not able to leave my credentials blank. This may be related to Snowflake Oauth

Relevant log output

Logs will be shared internally.

Environment

- OS:
- Python:
- dbt: Versionless error not helpful but 1.7 version is a little more helpful

Which database adapter are you using with dbt?

snowflake

Additional Context

No response

aranke commented 1 month ago

Response from customer:

Thanks for getting back to this topic, Indeed we have a generate_schema_name macro and the error is coming from there. This macro was unchanged and in 1.7 it was not throwing this error. I will fix it on our side. You can mark this ticket as closed.