doitintl / terraform-provider-doit

Terraform provider for DoiT API platform
Mozilla Public License 2.0
1 stars 0 forks source link

Reports: Error messages a misleading #11

Open tb137 opened 1 month ago

tb137 commented 1 month ago

Hello...

We have discovered that it's nearly impossible to know why reports update is failing. The error message:

│ Error: Error Updating Report │ │ with doit_report.cost_change_month_on_month["Spending"], │ on main.tf line 170, in resource "doit_report" "cost_change_month_on_month": │ 170: resource "doit_report" "cost_change_month_on_month" { │ │ Could not update report, unexpected error: status: 400, body: <html> │ <head><title>400 Bad Request</title></head> │ <body> │ <center><h1>400 Bad Request</h1></center> │ <hr><center>cloudflare</center> │ </body> │ </html>

There is also no schema validation, so in config you can provide whatever you want and it will apply it... however, next time it will complain that is something wrong with a config...

haizaar commented 1 month ago

Good day, Unfortunately this provider is still in highly experimental stage.