<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Terraform : getting unmarshal error: unexpected end of JSON input in Dynatrace Managed Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Terraform-getting-unmarshal-error-unexpected-end-of-JSON-input/m-p/288205#M4461</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Trying to use &lt;A href="https://docs.dynatrace.com/docs/deliver/configuration-as-code/terraform" target="_self"&gt;terraform provider dynatrace-oss/dynatrace&lt;/A&gt;&amp;nbsp;1.84.1 in a gitlab pipline setup.&lt;BR /&gt;terraform plan works&lt;BR /&gt;then&lt;BR /&gt;terraform apply fail :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any one got that ? Any idea ?&lt;/P&gt;&lt;P&gt;Strange thing is I can run successfully these terraform plan &amp;amp; apply locally (outside of git). I fail to see what's the catch. I tried&amp;nbsp;TF_LOG == trace with no success.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Oct 2025 17:12:24 GMT</pubDate>
    <dc:creator>gilles_tabary</dc:creator>
    <dc:date>2025-10-20T17:12:24Z</dc:date>
    <item>
      <title>Terraform : getting unmarshal error: unexpected end of JSON input</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Terraform-getting-unmarshal-error-unexpected-end-of-JSON-input/m-p/288205#M4461</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Trying to use &lt;A href="https://docs.dynatrace.com/docs/deliver/configuration-as-code/terraform" target="_self"&gt;terraform provider dynatrace-oss/dynatrace&lt;/A&gt;&amp;nbsp;1.84.1 in a gitlab pipline setup.&lt;BR /&gt;terraform plan works&lt;BR /&gt;then&lt;BR /&gt;terraform apply fail :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any one got that ? Any idea ?&lt;/P&gt;&lt;P&gt;Strange thing is I can run successfully these terraform plan &amp;amp; apply locally (outside of git). I fail to see what's the catch. I tried&amp;nbsp;TF_LOG == trace with no success.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 17:12:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Terraform-getting-unmarshal-error-unexpected-end-of-JSON-input/m-p/288205#M4461</guid>
      <dc:creator>gilles_tabary</dc:creator>
      <dc:date>2025-10-20T17:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform : getting unmarshal error: unexpected end of JSON input</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Terraform-getting-unmarshal-error-unexpected-end-of-JSON-input/m-p/288264#M4469</link>
      <description>&lt;P&gt;Fixed&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The error message is so cryptic that I did not think about this :&amp;nbsp; problem was that network route was not open from terraform execution machine to Dynatrace API url.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 16:11:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Terraform-getting-unmarshal-error-unexpected-end-of-JSON-input/m-p/288264#M4469</guid>
      <dc:creator>gilles_tabary</dc:creator>
      <dc:date>2025-10-21T16:11:05Z</dc:date>
    </item>
  </channel>
</rss>

