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

bad archive error when required args are not supplied #671

Closed
drewbanin opened this issue Mar 1, 2018 · 2 comments
Closed

bad archive error when required args are not supplied #671

drewbanin opened this issue Mar 1, 2018 · 2 comments
Assignees
Labels
bug Something isn't working good_first_issue Straightforward + self-contained changes, good for new contributors! snapshots Issues related to dbt's snapshot functionality

Comments

@drewbanin
Copy link
Contributor

drewbanin commented Mar 1, 2018

Error:

join() argument must be str or bytes, not 'NoneType'

This can be caused by typos in the Archival spec, eg:

archive:
  # these should be underscores
  - source-schema: public
    target-schema: dbt_archive
...

dbt should instead show a more helpful error, ideally linking to the docs

@drewbanin drewbanin added the bug Something isn't working label Mar 1, 2018
@drewbanin drewbanin self-assigned this Mar 1, 2018
@drewbanin drewbanin added the good_first_issue Straightforward + self-contained changes, good for new contributors! label Mar 12, 2018
@drewbanin
Copy link
Contributor Author

see also: #706

@drewbanin drewbanin added the snapshots Issues related to dbt's snapshot functionality label Jul 11, 2018
@drewbanin
Copy link
Contributor Author

This was fixed as a part of adding a schema for dbt_project.yml. The above example now returns:

$ dbt archive
Encountered an error while reading the project:
Runtime Error
  Runtime Error
    Invalid arguments passed to "Project" instance: archive.0.Additional properties are not allowed ('target-schema', 'source-schema' were unexpected), archive.0.'target_schema' is a required property, archive.0.'source_schema' is a required property
Encountered an error:
Runtime Error
  Could not run dbt

That's not the prettiest error I've ever seen, but it's pretty descriptive. Closing this.

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! snapshots Issues related to dbt's snapshot functionality
Projects
None yet
Development

No branches or pull requests

1 participant