Closed nakamiri closed 1 month ago
Same issue
This showed up today for me provider 3.43.0. I tried 3.42.0 and 3.41.0, which also all failed with the same message.
Of note - These synthetics were valid on 3.42.0 when I created them on Monday (Aug 12, 2024). But an attempt to recreate with the provider pinned to 3.42.0 today failed.
We're experiencing the same issue as well.
│ Error: error creating synthetics API test from https://api.datadoghq.eu/api/v1/synthetics/tests/api: 400 Bad Request: {"errors":["'extractedValues' value '{'field': '', 'name': 'PUBLIC', 'parser': {'type': 'json_path', 'value': '$.access'}, 'secure': False, 'type': 'http_body'}' is invalid"]}
│
│ with datadog_synthetics_test.white_label["test"],
│ on dd_synthetics_test_white_label.tf line 43, in resource "datadog_synthetics_test" "white_label":
│ 43: resource "datadog_synthetics_test" "white_label" {
│
Terraform v1.8.4
on linux_amd64
+ provider registry.terraform.io/datadog/datadog v3.39.0
Hi! This will be fixed by https://github.com/DataDog/terraform-provider-datadog/pull/2533. Sorry for the inconvenience.
Datadog Terraform Provider Version
v3.43.0
Terraform Version
v1.9.4
What resources or data sources are affected?
datadog_synthetics_test
Terraform Configuration Files
Relevant debug or panic output
Expected Behavior
The request payload is invalid. The
field
param may be unnecessary and should not exist whenextracted_value
is set withhttp_body
.Actual Behavior
The request payload is created with the
field: ""
.Steps to Reproduce
Using pasted tf file and
terraform apply
.This also occurs if other params with
extracted_values
are set.Important Factoids
No response
References
No response