dbt-labs / terraform-provider-dbtcloud

dbt Cloud Terraform Provider
https://registry.terraform.io/providers/dbt-labs/dbtcloud
MIT License
84 stars 19 forks source link

Error when updating job #44

Closed GtheSheep closed 2 years ago

GtheSheep commented 2 years ago
Error: status: 400, body: {"status":{"code":400,"is_success":false,"user_message":"The request was invalid. Please double check the provided data and try again.","developer_message":""},"data":{"schedule":{"time":{"interval":"extra keys not allowed","hours":"required key not provided"}}}}

Though error isn't reproducible in curl command, may need to log request to debug

GtheSheep commented 2 years ago

the way schedules behave is just mental, Interval is a required key even if not used but Hours is not, but they can't appear in the same request and Cron behaves similar to Hours

GtheSheep commented 2 years ago

Comes down to not having a default for hours, for some reason DBT Cloud requires it to be [9] or similar even if not using a schedule (like the default in the UI)

GtheSheep commented 2 years ago

Fixed.