Crash while generating error message while updating zone lockdown #1776
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/needs-information
Indicates an issue needs more information in order to work on it.
Confirmation
Terraform and Cloudflare provider version
Terraform: v1.2.2
Cloudflare provider: v3.19.0
Affected resource(s)
resource_cloudflare_zone_lockdown
Terraform configuration files
Nothing special..
Debug output
Can't easily get this from our build server. I think the error is obvious enough that this is not needed. If so, please let me know.
Panic output
Stack trace from the terraform-provider-cloudflare_v3.19.0 plugin:
panic: interface conversion: interface {} is nil, not string
goroutine 73 [running]:
github.com/cloudflare/terraform-provider-cloudflare/internal/provider.resourceCloudflareZoneLockdownUpdate({0xf95540, 0xc0003204e0}, 0xc000820c80, {0xe2b4e0?, 0xc0003ac600})
github.com/cloudflare/terraform-provider-cloudflare/internal/provider/resource_cloudflare_zone_lockdown.go:150 +0x765
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).update(0xc000522380, {0xf95578, 0xc000305020}, 0xd?, {0xe2b4e0, 0xc0003ac600})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.18.0/helper/schema/resource.go:741 +0x12e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc000522380, {0xf95578, 0xc000305020}, 0xc00045a8f0, 0xc0001ce880, {0xe2b4e0, 0xc0003ac600})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.18.0/helper/schema/resource.go:847 +0x82c
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc000395230, {0xf95578?, 0xc000304f00?}, 0xc0009ee4b0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.18.0/helper/schema/grpc_provider.go:1021 +0xe3c
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc0003ed040, {0xf95578?, 0xc0003043c0?}, 0xc0008c80e0)
github.com/hashicorp/terraform-plugin-go@v0.10.0/tfprotov5/tf5server/server.go:813 +0x4fc
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0xdfc060?, 0xc0003ed040}, {0xf95578, 0xc0003043c0}, 0xc0003204e0, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.10.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0003aa8c0, {0xf98100, 0xc000102340}, 0xc000a68000, 0xc00050bb30, 0x14b5ac0, 0x0)
google.golang.org/grpc@v1.47.0/server.go:1283 +0xcfd
google.golang.org/grpc.(*Server).handleStream(0xc0003aa8c0, {0xf98100, 0xc000102340}, 0xc000a68000, 0x0)
google.golang.org/grpc@v1.47.0/server.go:1620 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/grpc@v1.47.0/server.go:922 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.47.0/server.go:920 +0x28a
Error: The terraform-provider-cloudflare_v3.19.0 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.
Expected output
The error message
Actual output
Panic
Steps to reproduce
Run terraform plan and apply..
Additional factoids
It is the error message generation that causes the error:
https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/internal/provider/resource_cloudflare_zone_lockdown.go#L150
References
No response
The text was updated successfully, but these errors were encountered: