这是indexloc提供的服务,不要输入任何密码
Skip to content

terraform plan results in terraform-provider-vercel_v0.10.1 plugin panic #79

@ableeck

Description

@ableeck

OS: Mac OS 12.5.1 (21G83) on ARM64
Terraform: v1.1.4 on darwin_arm64

Repro:

  • Copy attached repro.tf.txt into a folder, and rename to repro.tf
  • Change the git_repository config to something useful
  • terraform init
  • Set an API token with access to your Vercel team
  • Have your Team ID ready for pasting
  • terraform plan

Observed:
Crash

Output:

Stack trace from the terraform-provider-vercel_v0.10.1 plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x28 pc=0x1055442a0]

goroutine 31 [running]:
github.com/vercel/terraform-provider-vercel/client.(*Client).GetTeam(0x0, {0x1057f63e0, 0x14000282e40}, {0x1400019e420, 0x1d})
	github.com/vercel/terraform-provider-vercel/client/team_get.go:13 +0x50
github.com/vercel/terraform-provider-vercel/vercel.(*vercelProvider).Configure(0x14000120878, {0x1057f63e0, 0x14000282e40}, {{0x140000383f8, 0x5}, {{{0x1057fa008, 0x14000283410}, {0x1057206e0, 0x140002831a0}}, {0x1400049b470, ...}}}, ...)
	github.com/vercel/terraform-provider-vercel/vercel/provider.go:130 +0x274
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ConfigureProvider(0x1400017bce0, {0x1057f63e0, 0x14000282e40}, 0x140002a7400, 0x14000046ac0)
	github.com/hashicorp/terraform-plugin-framework@v0.13.0/internal/fwserver/server_configureprovider.go:15 +0xc4
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ConfigureProvider(0x1400017bce0, {0x1057f63e0?, 0x14000282cf0?}, 0x5?)
	github.com/hashicorp/terraform-plugin-framework@v0.13.0/internal/proto6server/server_configureprovider.go:36 +0x220
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ConfigureProvider(0x14000392500, {0x1057f63e0?, 0x140002823c0?}, 0x14000046880)
	github.com/hashicorp/terraform-plugin-go@v0.14.0/tfprotov6/tf6server/server.go:527 +0x250
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ConfigureProvider_Handler({0x1057c9280?, 0x14000392500}, {0x1057f63e0, 0x140002823c0}, 0x140000a4460, 0x0)
	github.com/hashicorp/terraform-plugin-go@v0.14.0/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:331 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0x140003061e0, {0x1057fa2f8, 0x1400029c4e0}, 0x14000000c60, 0x140003d7d10, 0x105c1ab98, 0x0)
	google.golang.org/grpc@v1.49.0/server.go:1301 +0x9c4
google.golang.org/grpc.(*Server).handleStream(0x140003061e0, {0x1057fa2f8, 0x1400029c4e0}, 0x14000000c60, 0x0)
	google.golang.org/grpc@v1.49.0/server.go:1642 +0x82c
google.golang.org/grpc.(*Server).serveStreams.func1.2()
	google.golang.org/grpc@v1.49.0/server.go:938 +0x84
created by google.golang.org/grpc.(*Server).serveStreams.func1
	google.golang.org/grpc@v1.49.0/server.go:936 +0x290

Error: The terraform-provider-vercel_v0.10.1 plugin crashed!

repro.tf.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions