Hello to everyone. Could someone help me with specific error?
This is the part from my code. I use module and pass their a lot of values from locals
module "prod_website_check" {
source = "git::https://*******"
overall_alert_level = "critical"
website_checks = local.prod_website_checks
smg_ids = [2, 3]
use_default_location_setting = true
global_sm_alert_cond = 3
}
locals {
prod_website_checks = {
"to_update_ca-demo.anacs.glob.com" = { ### API endpoint health not available
group_id = 670
description = ""
domain = "ca-demo.anacs.glob.com"
trigger_s_s_l_status_alert = false
disable_alerting = true
stop_monitoring = true
steps = {
__step0 = {
require_auth = false
http_method = "GET"
http_body = ""
url = "/health"
keyword = "unhealthy"
invert_match = true
}
}
}
}
}
terraform {
required_providers {
logicmonitor = {
source = "logicmonitor/logicmonitor"
version = "2.0.25"
}
}
}
Code above pass this value to the our internal module which is mimicked from https://registry.terraform.io/providers/logicmonitor/logicmonitor/latest/docs/resources/website
We starteg getting this error.
[2025-10-16T15:26:00.919Z] │ Error: unexpected: &{0 } (*models.ErrorResponse) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface
[2025-10-16T15:26:00.919Z] │
[2025-10-16T15:26:00.919Z] │ with module.prod_website_check.logicmonitor_website.website_check["to_update_ca-demo.anacs.glob.com"],
[2025-10-16T15:26:00.919Z] │ on .terraform/modules/prod_website_check/main.tf line 2, in resource "logicmonitor_website" "website_check":
[2025-10-16T15:26:00.919Z] │ 2: resource "logicmonitor_website" "website_check" {
Hello to everyone. Could someone help me with specific error?
This is the part from my code. I use module and pass their a lot of values from locals
module "prod_website_check" {
source = "git::https://*******"
overall_alert_level = "critical"
website_checks = local.prod_website_checks
smg_ids = [2, 3]
use_default_location_setting = true
global_sm_alert_cond = 3
}
locals {
prod_website_checks = {
"to_update_ca-demo.anacs.glob.com" = { ### API endpoint health not available
group_id = 670
description = ""
domain = "ca-demo.anacs.glob.com"
trigger_s_s_l_status_alert = false
disable_alerting = true
stop_monitoring = true
steps = {
__step0 = {
require_auth = false
http_method = "GET"
http_body = ""
url = "/health"
keyword = "unhealthy"
invert_match = true
}
}
}
}
}
terraform {
required_providers {
logicmonitor = {
source = "logicmonitor/logicmonitor"
version = "2.0.25"
}
}
}
Code above pass this value to the our internal module which is mimicked from https://registry.terraform.io/providers/logicmonitor/logicmonitor/latest/docs/resources/website
We starteg getting this error.
[2025-10-16T15:26:00.919Z] │ Error: unexpected: &{0 } (*models.ErrorResponse) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface
[2025-10-16T15:26:00.919Z] │
[2025-10-16T15:26:00.919Z] │ with module.prod_website_check.logicmonitor_website.website_check["to_update_ca-demo.anacs.glob.com"],
[2025-10-16T15:26:00.919Z] │ on .terraform/modules/prod_website_check/main.tf line 2, in resource "logicmonitor_website" "website_check":
[2025-10-16T15:26:00.919Z] │ 2: resource "logicmonitor_website" "website_check" {