Sentry plugin crash during terraform plan
Closed this issue · 0 comments
sentry_organization.default: Creating...
╷
│ Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details.
╵
Stack trace from the terraform-provider-sentry_v0.13.1 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xa7475a]
goroutine 27 [running]:
github.com/jianyuan/go-sentry/v2/sentry.CheckResponse(0xd100e0?)
github.com/jianyuan/go-sentry/v2@v2.8.1/sentry/sentry.go:356 +0x1a
github.com/jianyuan/terraform-provider-sentry/internal/sentryclient.(*Config).Client.func1(0xf47e20?, 0x15377c0?, 0xc0001a0870?, 0xf421e0?)
github.com/jianyuan/terraform-provider-sentry/internal/sentryclient/sentryclient.go:35 +0x2a
github.com/hashicorp/go-retryablehttp.(*Client).Do(0xc000429f80, 0xc00041b8c0)
github.com/hashicorp/go-retryablehttp@v0.7.7/client.go:754 +0xd9c
github.com/hashicorp/go-retryablehttp.(*RoundTripper).RoundTrip(0xc0003aee10, 0x9?)
github.com/hashicorp/go-retryablehttp@v0.7.7/roundtripper.go:47 +0x72
github.com/jianyuan/terraform-provider-sentry/internal/sentryclient.(*semaphoreTransport).RoundTrip(0xc0004881e0, 0xc0001a8d00)
github.com/jianyuan/terraform-provider-sentry/internal/sentryclient/sentryclient.go:79 +0x1f8
net/http.send(0xc0001a8d00, {0xf42280, 0xc0004881e0}, {0x418401?, 0x0?, 0x0?})
net/http/client.go:260 +0x606
net/http.(*Client).send(0xc000488210, 0xc0001a8d00, {0x1b?, 0xcb0e20?, 0x0?})
net/http/client.go:181 +0x98
net/http.(*Client).do(0xc000488210, 0xc0001a8d00)
net/http/client.go:724 +0x912
net/http.(*Client).Do(...)
net/http/client.go:590
github.com/jianyuan/go-sentry/v2/sentry.(*Client).BareDo(0xa?, {0xf47f00, 0xc000449960}, 0xc0001a8d00?)
github.com/jianyuan/go-sentry/v2@v2.8.1/sentry/sentry.go:255 +0x3e
github.com/jianyuan/go-sentry/v2/sentry.(*Client).Do(0xc00030d7a0?, {0xf47f00?, 0xc000449960?}, 0xde954c?, {0xc62060?, 0xc00048b860})
github.com/jianyuan/go-sentry/v2@v2.8.1/sentry/sentry.go:273 +0x68
github.com/jianyuan/go-sentry/v2/sentry.(*OrganizationsService).Create(0xc00030d7c0, {0xf47f00, 0xc000449960}, 0x15?)
github.com/jianyuan/go-sentry/v2@v2.8.1/sentry/organizations.go:133 +0x93
github.com/jianyuan/terraform-provider-sentry/sentry.resourceSentryOrganizationCreate({0xf47f00, 0xc000449960}, 0x0?, {0xcf82c0?, 0xc00030d7a0?})
github.com/jianyuan/terraform-provider-sentry/sentry/resource_sentry_organization.go:64 +0x318
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc0001715e0, {0xf47e58, 0xc00001bb00}, 0xd?, {0xcf82c0, 0xc00030d7a0})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:806 +0x11b
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0001715e0, {0xf47e58, 0xc00001bb00}, 0xc0004b9450, 0xc000020980, {0xcf82c0, 0xc00030d7a0})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:937 +0xa89
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc0001237b8, {0xf47e58?, 0xc00001b950?}, 0xc000435d10)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/grpc_provider.go:1153 +0xdbc
github.com/hashicorp/terraform-plugin-mux/tf5to6server.v5tov6Server.ApplyResourceChange({{0xf50510?, 0xc0001237b8?}}, {0xf47e58, 0xc00001b950}, 0x0?)
github.com/hashicorp/terraform-plugin-mux@v0.16.0/tf5to6server/tf5to6server.go:38 +0x54
github.com/hashicorp/terraform-plugin-mux/tf6muxserver.(*muxServer).ApplyResourceChange(0xf47e90?, {0xf47e58?, 0xc00001b650?}, 0xc000435cc0)
github.com/hashicorp/terraform-plugin-mux@v0.16.0/tf6muxserver/mux_server_ApplyResourceChange.go:36 +0x193
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ApplyResourceChange(0xc000265c20, {0xf47e58?, 0xc00001ac60?}, 0xc000449180)
github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov6/tf6server/server.go:865 +0x3d0
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ApplyResourceChange_Handler({0xdb7e40?, 0xc000265c20}, {0xf47e58, 0xc00001ac60}, 0xc000020180, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:518 +0x169
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0001b5000, {0xf47e58, 0xc00001abd0}, {0xf4d6a0, 0xc0004fa000}, 0xc00001c360, 0xc0003a9080, 0x14faed8, 0x0)
google.golang.org/grpc@v1.63.2/server.go:1369 +0xe23
google.golang.org/grpc.(*Server).handleStream(0xc0001b5000, {0xf4d6a0, 0xc0004fa000}, 0xc00001c360)
google.golang.org/grpc@v1.63.2/server.go:1780 +0x1016
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/grpc@v1.63.2/server.go:1019 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 52
google.golang.org/grpc@v1.63.2/server.go:1030 +0x135
Error: The terraform-provider-sentry_v0.13.1 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.