Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST /api/v1/provisioning/contact-points 500 with no context (name too long) #1916

Open
makarov-roman opened this issue Nov 19, 2024 · 0 comments

Comments

@makarov-roman
Copy link

Terraform Version

1.9.8

Terraform Grafana Provider Version

3.13.1

Grafana Version

11.3.0

Affected Resource(s)

  • grafana_contact_point

Terraform Configuration Files

resource "grafana_contact_point" "teams_contact_point_root" {
  name   = "name-32-chars-here"
  org_id = grafana_organization.org.id

  teams {
    url                     = var.teams_webhook_url_root
    title                   = "CUSTOMER MONITORING ALERTS"
    disable_resolve_message = true
    message                 = <<EOT
{{ if gt (len .Alerts.Firing) 0 }}
  {{ len .Alerts.Firing }} alert/s firing:
  {{ range .Alerts.Firing }} {{ template "alert" .}} {{ end }}
{{ end }}
EOT
  }
}

Expected Behavior

Contact point is created

Actual Behavior

500 error with no context at all

Steps to Reproduce

No response

Important Factoids

We're were checking different scenarios which could allow to reproduce the error and turned out if you use name longer than 30 symbols via terraform provider, then you have 500, but the same name works via UI.

References

No response

@makarov-roman makarov-roman changed the title POST /api/v1/provisioning/contact-points 500 with no context (name to long) POST /api/v1/provisioning/contact-points 500 with no context (name too long) Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant