20 Oct 2025 06:12 PM
Hello.
Trying to use terraform provider dynatrace-oss/dynatrace 1.84.1 in a gitlab pipline setup.
terraform plan works
then
terraform apply fail :
Error: POST https://mydynthost/e/tenentid/api/v2/settings/objects?repairInput=true: unmarshal error: unexpected end of JSON input
with module.metric_events_ocp_K8S_Workload_alerts["ocplab1c"].dynatrace_metric_events.No_pod_ready_for_K8S_Workload,
on modules/metric_events_ocp_K8S_Workload_alerts/ocp_No_pod_ready_for_K8S_Workload.metric_events.tf line 1, in resource "dynatrace_metric_events" "No_pod_ready_for_K8S_Workload":
1: resource "dynatrace_metric_events" "No_pod_ready_for_K8S_Workload" {
2025-10-20T18:53:00.816+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
Any one got that ? Any idea ?
Strange thing is I can run successfully these terraform plan & apply locally (outside of git). I fail to see what's the catch. I tried TF_LOG == trace with no success.
Regards.
Solved! Go to Solution.
21 Oct 2025 05:11 PM
Fixed ✔️
The error message is so cryptic that I did not think about this : problem was that network route was not open from terraform execution machine to Dynatrace API url.