dbt not connecting to snowflake from ubuntu

I am trying to use dbt with snowflake. Installed everything and when I run “dbt debug” it is throwing the error

(Caused by NewConnectionError(‘<snowflake.connector.vendored.urllib3.connection.HTTPSConnection object at 0x7fe604c831c0>: Failed to establish a new connection: [Errno -2] Name or service not known’))

OS=ubuntu
python ==3.10.12
dbt-core==1.9.4
dbt-snowflake==1.9.2
snowflake-connector-python==3.14.0

I could connect to snowflake using UI and the .profiles file is correct. The same file was used by someone else and it worked for them

appreciate your help

What I’ve already tried

debt debug
updated no_proxy and NO_PROXY

Some example code or error messages

--my profiles file
ap:
  outputs:
    dev:
      account: mycompany.us-east-1.privatelink
      authenticator: externalbrowser
      database: MYDB
      role: MYROLE
      schema: TRGT
      threads: 1
      type: snowflake
      user: myname@mycompany.com
      warehouse: mywarehouse
  target: dev

I think its the account. I dont think you need to use the full account info, just the name.