Skip to content

pagerduty_tag timeouts? #1064

@jdubs

Description

@jdubs

I'm trying to apply some tags to some terraform managed resources in PD. Our pager duty instance is very large and has a lot of things in it. I think I'm hitting some sort of timeout when paginating the list of tags returned by the api 2 minute timeout which returns some error and it cannot be marshaled as json. I wonder instead of just bumping the timeout, should the listing of tags be done differently?

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: Error calling GetTagWithContext
│ 
│   with pagerduty_tag.team,
│   on teams.tf line 23, in resource "pagerduty_tag" "team":
│   23: resource "pagerduty_tag" "team" {
 resource "pagerduty_tag" "team" {
   label = "teamA"
 }

 resource "pagerduty_tag_assignment" "parent_team" {
   entity_type = "teams"
   entity_id   = pagerduty_team.parent_team.id
   tag_id      = pagerduty_tag.team.id
 }

From the logs

2025-10-10T11:59:32.264-0500 [DEBUG] provider.terraform-provider-pagerduty_v3.30.2: -----------------------------------------------------
2025-10-10T11:59:34.843-0500 [WARN]  provider.terraform-provider-pagerduty_v3.30.2: [WARN] WaitForState timeout after 2m0s
2025-10-10T11:59:34.843-0500 [WARN]  provider.terraform-provider-pagerduty_v3.30.2: [WARN] WaitForState starting 30s refresh grace period
2025-10-10T11:59:34.843-0500 [ERROR] provider.terraform-provider-pagerduty_v3.30.2: Response contains error diagnostic: tf_provider_addr=registry.terraform.io/pagerduty/pagerduty tf_req_id=7069fee9-d8e4-d92e-2a2b-5822d87a53a9 tf_resource_type=pagerduty_tag tf_rpc=ReadResource @caller=github.com/hashicorp/terraform-plugin-go@v0.20.0/tfprotov5/internal/diag/diagnostics.go:62 @module=sdk.proto diagnostic_detail="Could not decode JSON response: json: cannot unmarshal number into Go value of type pagerduty.Tag" diagnostic_summary="Error calling GetTagWithContext" tf_proto_version=5.4 diagnostic_severity=ERROR timestamp=2025-10-10T11:59:34.843-0500
2025-10-10T11:59:34.843-0500 [ERROR] vertex "pagerduty_tag.team" error: Error calling GetTagWithContext
2025-10-10T11:59:34.843-0500 [ERROR] vertex "pagerduty_tag.team(expand)" error: Error calling GetTagWithContext
2025-10-10T11:59:34.846-0500 [WARN]  Planning encountered errors, so plan is not applyable
terraform --version
Terraform v1.13.3
on linux_amd64
+ provider registry.terraform.io/pagerduty/pagerduty v3.30.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions