terraform-provider-datadog icon indicating copy to clipboard operation
terraform-provider-datadog copied to clipboard

Crash in reflect.Value.MethodByName when reading synthetics browser test

Open igin opened this issue 3 years ago • 1 comments

Terraform Version

Terraform v1.0.8
on linux_amd64
+ provider registry.terraform.io/datadog/datadog v3.4.0

Affected Resource(s)

  • datadog_synthetics_test

Terraform Configuration Files

https://gist.github.com/igin/86de2ab6b53a93b16cc0f71d65c2cb94 (removed element descriptors for privacy reasons)

Panic Output

https://gist.github.com/igin/5b88bba01d3210c8f6b55d3bdb5fb377

Expected Behavior

Provider should read the state of the existing synthetic test in the next plan.

Actual Behavior

Provider tries to read the state of the existing synthetic test and crashes.

Steps to Reproduce

  1. terraform apply
  2. terraform plan

igin avatar Oct 06 '21 15:10 igin

Hi, I was unable to reproduce the issue with the above config. The exception is thrown by the method here which is probably recursively checking the element descriptors. So in this case, I think seeing the elements themselves would be helpful in reproducing the issue. Could you open support ticket here https://docs.datadoghq.com/help/ and share the hcl with element descriptors. Thanks!

skarimo avatar Oct 27 '21 19:10 skarimo

Closing this issue. Feel free to re-open if the behavior is still occurring. Thanks!

skarimo avatar Dec 28 '22 19:12 skarimo