Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty target in profiles.yml results in an unhelpful error message #2569

Closed
clrcrl opened this issue Jun 18, 2020 · 1 comment · Fixed by #2627
Closed

Empty target in profiles.yml results in an unhelpful error message #2569

clrcrl opened this issue Jun 18, 2020 · 1 comment · Fixed by #2627
Labels
bug Something isn't working good_first_issue Straightforward + self-contained changes, good for new contributors!

Comments

@clrcrl
Copy link
Contributor

clrcrl commented Jun 18, 2020

Steps to reproduce

  1. Create a profile like so (note empty learn: key)
$ cat ~/.dbt/profiles.yml
jaffle_shop:
  target: learn

  outputs:
    learn:
  1. Run dbt debug --profile jaffle_shop

Expected behavior

A useful error message

Actual behavior

$ dbt debug --profile jaffle_shop
Running with dbt=0.18.0-b1
dbt version: 0.18.0-b1
python version: 3.7.5
python path: /Users/claire/.pyenv/versions/3.7.5/envs/dbt-dev-v2/bin/python
os info: Darwin-19.4.0-x86_64-i386-64bit
Using profiles.yml file at /Users/claire/.dbt/profiles.yml
Using dbt_project.yml file at /Users/claire/clrcrl/jaffle_shop/dbt_project.yml

Encountered an error:
'NoneType' object has no attribute 'pop'

The output of dbt --version:

$ dbt --version
installed version: 0.18.0-b1
   latest version: 0.17.0

Your version of dbt is ahead of the latest release!

Plugins:
  - bigquery: 0.18.0b1
  - snowflake: 0.18.0b1
  - redshift: 0.18.0b1
  - postgres: 0.18.0b1

Additional context

This came up because someone had their profile indented incorrectly:

jaffle_shop:
  target: learn

  outputs:
    learn:
    type: snowflake
    threads: 1
    account: ***
    ...
@clrcrl clrcrl added bug Something isn't working triage labels Jun 18, 2020
@drewbanin drewbanin removed the triage label Jun 18, 2020
@drewbanin drewbanin added this to the Marian Anderson milestone Jun 18, 2020
@jtcohen6 jtcohen6 added the good_first_issue Straightforward + self-contained changes, good for new contributors! label Jul 8, 2020
@kning
Copy link
Contributor

kning commented Jul 15, 2020

just an fyi, im working on this now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good_first_issue Straightforward + self-contained changes, good for new contributors!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants