Skip to content

[Bug]: Problem with the skip_read not working fix 113 #117

Description

@mytchln

Github handle

mytchln

Please describe the issue you are facing?

With the 2.1.0 i am now getting this:

Stack trace from the terraform-provider-terracurl_v2.1.0 plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x81c7c1]

goroutine 27 [running]:
github.com/devops-rob/terraform-provider-terracurl/internal/provider.(*CurlResource).UpgradeState.func1({0xe77b98, 0xc0003cc360}, {0xc00007f260?, 0x0?}, 0xc0003aaa00)
/Users/rbarnes/Developer/devops-rob/terraform-provider-terracurl/internal/provider/curl_resource.go:951 +0x81
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).UpgradeResourceState(0xc0002da008, {0xe77b98, 0xc0003cc360}, 0xc0003cc8a0, 0xc0000ed5f0)
/Users/rbarnes/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.14.1/internal/fwserver/server_upgraderesourcestate.go:205 +0x94d
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).UpgradeResourceState(0xc0002da008, {0xe77b98?, 0xc0003cc270?}, 0xc00007f280)
/Users/rbarnes/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.14.1/internal/proto6server/server_upgraderesourcestate.go:51 +0x2ce
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).UpgradeResourceState(0xc000262140, {0xe77b98?, 0xc0003a1ad0?}, 0xc0003aa820)
/Users/rbarnes/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.26.0/tfprotov6/tf6server/server.go:752 +0x262
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_UpgradeResourceState_Handler({0xd1e420, 0xc000262140}, {0xe77b98, 0xc0003a1ad0}, 0xc0003a2c80, 0x0)
/Users/rbarnes/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.26.0/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:539 +0x1a9
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000218200, {0xe77b98, 0xc0003a1a70}, 0xc0001db7a0, 0xc0002dc000, 0x143d938, 0x0)
/Users/rbarnes/go/pkg/mod/google.golang.org/grpc@v1.69.4/server.go:1392 +0xfbe
google.golang.org/grpc.(*Server).handleStream(0xc000218200, {0xe786c8, 0xc000183860}, 0xc0001db7a0)
/Users/rbarnes/go/pkg/mod/google.golang.org/grpc@v1.69.4/server.go:1802 +0xb88
google.golang.org/grpc.(*Server).serveStreams.func2.1()
/Users/rbarnes/go/pkg/mod/google.golang.org/grpc@v1.69.4/server.go:1030 +0x7f
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 10
/Users/rbarnes/go/pkg/mod/google.golang.org/grpc@v1.69.4/server.go:1041 +0x11d

Error: The terraform-provider-terracurl_v2.1.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.

Please detail the steps to reproduce the issue?

step 1: do this
step 2: do that
step 3: etc

TerraCurl provider version

1.2.2 (Default)

What version of Terraform are you using?

None

What Operating system architecture are you running?

None

Relevant log output

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions