Skip to content

Instantly share code, notes, and snippets.

@phergoualch
Created December 16, 2024 14:43
Show Gist options
  • Save phergoualch/a0837a64b6f5246cd75be8b233c5512e to your computer and use it in GitHub Desktop.
Save phergoualch/a0837a64b6f5246cd75be8b233c5512e to your computer and use it in GitHub Desktop.
Prefect Deployments Clone Error
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xa969c2]
goroutine 51 [running]:
github.com/prefecthq/terraform-provider-prefect/internal/client.checkRetryPolicy({0xdf9468?, 0xc00043c450?}, 0xc00038e300?, {0xdf3520?, 0xc00047cc60?})
github.com/prefecthq/terraform-provider-prefect/internal/client/client.go:109 +0x22
github.com/hashicorp/go-retryablehttp.(*Client).Do(0xc00013fb00, 0xc000472408)
github.com/hashicorp/go-retryablehttp@v0.7.7/client.go:705 +0x315
github.com/hashicorp/go-retryablehttp.(*RoundTripper).RoundTrip(0xc0001314e8, 0xc000474b40?)
github.com/hashicorp/go-retryablehttp@v0.7.7/roundtripper.go:47 +0x72
net/http.send(0xc000474b40, {0xdf3660, 0xc0001314e8}, {0xc00038e801?, 0xc00038e8d0?, 0x0?})
net/http/client.go:259 +0x5e4
net/http.(*Client).send(0xc0004cf2c0, 0xc000474b40, {0xc00038e908?, 0x41a058?, 0x0?})
net/http/client.go:180 +0x98
net/http.(*Client).do(0xc0004cf2c0, 0xc000474b40)
net/http/client.go:724 +0x8dc
net/http.(*Client).Do(...)
net/http/client.go:590
github.com/prefecthq/terraform-provider-prefect/internal/client.request({0xdf9468, 0xc00043c450}, 0xc0004cf2c0, {{0xcb93d6, 0x4}, {0xc000042e70, 0x2d}, {0xb59120, 0xc00019ea00}, {0x12cffa0, ...}, ...})
github.com/prefecthq/terraform-provider-prefect/internal/client/util.go:121 +0x231
github.com/prefecthq/terraform-provider-prefect/internal/client.requestWithDecodeResponse({0xdf9468?, 0xc00043c450?}, 0x13?, {{0xcb93d6, 0x4}, {0xc000042e70, 0x2d}, {0xb59120, 0xc00019ea00}, {0x12cffa0, ...}, ...}, ...)
github.com/prefecthq/terraform-provider-prefect/internal/client/util.go:158 +0x85
github.com/prefecthq/terraform-provider-prefect/internal/client.(*DeploymentsClient).Create(_, {_, _}, {0x0, 0x0, {0xc00003d4a0, 0x20}, 0x0, {0xc00040c8a0, 0x14}, ...})
github.com/prefecthq/terraform-provider-prefect/internal/client/deployments.go:52 +0x1bc
github.com/prefecthq/terraform-provider-prefect/internal/provider/resources.(*DeploymentResource).Create(0xc0003e2c50, {0xdf9468, 0xc00043c450}, {{{{0xdfe950, 0xc00044c000}, {0xbb2860, 0xc00043da70}}, {0xe012d8, 0xc0000c7400}}, {{{0xdfe950, ...}, ...}, ...}, ...}, ...)
github.com/prefecthq/terraform-provider-prefect/internal/provider/resources/deployment.go:603 +0xa2d
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).CreateResource(0xc00018db08, {0xdf9468, 0xc00043c450}, 0xc00038f538, 0xc00038f510)
github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_createresource.go:101 +0x578
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ApplyResourceChange(0xc00018db08, {0xdf9468, 0xc00043c450}, 0xc00036f810, 0xc00038f628)
github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_applyresourcechange.go:57 +0x4aa
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ApplyResourceChange(0xc00018db08, {0xdf9468?, 0xc00043c360?}, 0xc00036f770)
github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/proto6server/server_applyresourcechange.go:55 +0x38e
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ApplyResourceChange(0xc0001fcdc0, {0xdf9468?, 0xc0003cf950?}, 0xc0004a0770)
github.com/hashicorp/terraform-plugin-go@v0.25.0/tfprotov6/tf6server/server.go:865 +0x3d0
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ApplyResourceChange_Handler({0xc9bba0, 0xc0001fcdc0}, {0xdf9468, 0xc0003cf950}, 0xc00028b980, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.25.0/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:611 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0001a8e00, {0xdf9468, 0xc0003cf8c0}, {0xdffa60, 0xc000408000}, 0xc0003b97a0, 0xc000322210, 0x13423b8, 0x0)
google.golang.org/grpc@v1.67.1/server.go:1394 +0xe49
google.golang.org/grpc.(*Server).handleStream(0xc0001a8e00, {0xdffa60, 0xc000408000}, 0xc0003b97a0)
google.golang.org/grpc@v1.67.1/server.go:1805 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/grpc@v1.67.1/server.go:1029 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 35
google.golang.org/grpc@v1.67.1/server.go:1040 +0x125
Error: The terraform-provider-prefect_v2.12.0 plugin crashed!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment