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

Internal Error PagerDuty Integration #87

Closed
akak548 opened this issue Dec 9, 2020 · 2 comments
Closed

Internal Error PagerDuty Integration #87

akak548 opened this issue Dec 9, 2020 · 2 comments

Comments

@akak548
Copy link

akak548 commented Dec 9, 2020

Getting random error when trying to rule the following rule with pagerduty integration. Running Terraform 0.14

Error: sentry: map[detail:Internal Error errorId:92d153b93ba24161bfa07c22e7db5c50]

resource "sentry_rule" "pagerduty" {
  organization = "company
  project      = "test"
  action_match = "any"
  frequency    = "1d"
  name         = "PagerDuty rule"

  conditions =  [
      {
        id   = "sentry.rules.conditions.first_seen_event.FirstSeenEventCondition"
        name = "A new issue is created"
      },
      {
        id       = "sentry.rules.conditions.event_frequency.EventFrequencyCondition"
        value    = "1"
        interval = "1d"
      }
    ]

  filters = []

  actions = [
    {
      id      = "sentry.integrations.pagerduty.notify_action.PagerDutyNotifyServiceAction"
      account = [Retrieved from url of pagerduty integration. https://sentry.io/settings/coalition-inc/integrations/pagerduty/XXXX/]
      service = [Name of Service under pagerduty integration settings]
    }
  ]
}
@akak548 akak548 closed this as completed Mar 4, 2021
@firthh
Copy link

firthh commented Nov 2, 2021

I've got the same error. How did you solve this @akak548 ?

@firthh
Copy link

firthh commented Nov 3, 2021

For anyone who finds their way here like I did. The solution is that service within the pagerduty action needs to be an id. You can find this ID by interrogating some JSON returned from the Sentry API (e.g. https://sentry.io/api/0/organizations/{your-org-slug}/integrations/). You will have multiple IDs are under .configData.service_table in the pagerduty integration for each pagerduty service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants