Not able to connect to Snowflake from DBT

I am trying to connect to snowflake from dbt .I am getting the below error

dbt was unable to connect to the specified database.
The database returned the following error:

** >Database Error**
** 250001: Could not connect to Snowflake backend after 2 attempt(s).Aborting**

Check your database credentials and try again. For more information, visit:
Connection profiles | dbt Developer Hub

I have given the correct account name which is in the format -
I am able to login using the credentials through the console .Please help.