site24x7 / terraform-provider-site24x7

Terraform provider for Site24x7
MIT License
23 stars 36 forks source link

"Invalid data provided for the resource" when updating site24x7_web_transaction_browser_monitor #287

Open movinfinex opened 5 months ago

movinfinex commented 5 months ago

I have some site24x7_web_transaction_browser_monitor resources. As far as I can tell, any update (including to selenium_script and tag_ids and threshold_profile_id) fails with an error like this:

Error: Invalid data provided for the resource - /api/monitors/12252000000075041

Forcing a deletion and recreating using the same config works (but destroys monitoring history).

valugi commented 5 months ago

I had similar issues when setting default values, even according to documentation and leaving them empty. Try setting your defaults to null instead.

karmseveeratjisc commented 1 month ago

we have same issue even creating from scratch - in the UI it says the monitor id is invalid, then trying to apply again gives 'Invalid data provided for the resource'

and no attempt to swap to setting defaults to null seems to help either

karmseveeratjisc commented 1 month ago

actually ours was slightly different, we needed to set script_type to 'side' not 'txt' (as docs suggest!)

Now we have same problem as original - we can't update it!

sujithramagesh commented 2 weeks ago

Hi everyone, kindly give "selenium_script" and "script_type" attributes only during creation. Selenium scripts cannot be updated using terraform.It requires a different API and we are working on it.