Skip to content

Instantly share code, notes, and snippets.

@ohookins
Created October 29, 2021 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohookins/0ae4f749e58e45a0340c140745ca8073 to your computer and use it in GitHub Desktop.
Save ohookins/0ae4f749e58e45a0340c140745ca8073 to your computer and use it in GitHub Desktop.
terraform-provider-datadog crash
Stack trace from the terraform-provider-datadog_v3.4.0 plugin:
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 55 [running]:
github.com/terraform-providers/terraform-provider-datadog/datadog.completeSyntheticsTestRequest(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc000a6c2c0, ...)
github.com/terraform-providers/terraform-provider-datadog/datadog/resource_datadog_synthetics_test_.go:1193 +0xe13
github.com/terraform-providers/terraform-provider-datadog/datadog.buildSyntheticsAPITestStruct(0xc00008e880, 0x168d681)
github.com/terraform-providers/terraform-provider-datadog/datadog/resource_datadog_synthetics_test_.go:1012 +0x7c8
github.com/terraform-providers/terraform-provider-datadog/datadog.resourceDatadogSyntheticsTestCreate(0x18e4818, 0xc0006642a0, 0xc00008e880, 0x1396d60, 0xc0000f4040, 0xc000a6c080, 0xaa61ea, 0xc000b70180)
github.com/terraform-providers/terraform-provider-datadog/datadog/resource_datadog_synthetics_test_.go:799 +0x597
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc0004877a0, 0x18e47a8, 0xc00053fd80, 0xc00008e880, 0x1396d60, 0xc0000f4040, 0x0, 0x0, 0x0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.7.0/helper/schema/resource.go:330 +0x17f
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0004877a0, 0x18e47a8, 0xc00053fd80, 0xc0003a20e0, 0xc000b70180, 0x1396d60, 0xc0000f4040, 0x0, 0x0, 0x0, ...)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.7.0/helper/schema/resource.go:456 +0x67b
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc00000c138, 0x18e47a8, 0xc00053fd80, 0xc00066d130, 0xc00053fd80, 0x15e6c20, 0xc000874000)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.7.0/helper/schema/grpc_provider.go:955 +0x8ef
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).ApplyResourceChange(0xc0008e5520, 0x18e4850, 0xc00053fd80, 0xc0001e0b60, 0xc0008e5520, 0xc000addba0, 0x46cae7)
github.com/hashicorp/terraform-plugin-go@v0.3.0/tfprotov5/server/server.go:332 +0xb5
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x15e6c20, 0xc0008e5520, 0x18e4850, 0xc000874060, 0xc0002c36e0, 0x0, 0x18e4850, 0xc000874060, 0xc0009ba700, 0x689)
github.com/hashicorp/terraform-plugin-go@v0.3.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:380 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000331880, 0x18edb78, 0xc0004dd200, 0xc0009ac300, 0xc0004795c0, 0x2241c40, 0x0, 0x0, 0x0)
google.golang.org/grpc@v1.32.0/server.go:1194 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc000331880, 0x18edb78, 0xc0004dd200, 0xc0009ac300, 0x0)
google.golang.org/grpc@v1.32.0/server.go:1517 +0xd0c
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0000402a0, 0xc000331880, 0x18edb78, 0xc0004dd200, 0xc0009ac300)
google.golang.org/grpc@v1.32.0/server.go:859 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.32.0/server.go:857 +0x1fd
Error: The terraform-provider-datadog_v3.4.0 plugin crashed!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment