Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infisical_project_user Error: Plugin did not respond #76

Open
felixhummel opened this issue Nov 29, 2024 · 0 comments
Open

infisical_project_user Error: Plugin did not respond #76

felixhummel opened this issue Nov 29, 2024 · 0 comments

Comments

@felixhummel
Copy link

Setup

$ tofu version
OpenTofu v1.8.5
on linux_amd64
+ provider registry.opentofu.org/infisical/infisical v0.12.3

Resource

resource "infisical_project_user" "felix" {
  project_id = infisical_project.jc.id
  username   = "[email protected]"
  roles = [
    {
      role_slug = "admin"
    }
  ]
}

Expected: User with email address [email protected] gets admin role on the project.

Actual:

infisical_project_user.felix: 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-infisical_v0.12.3 plugin:

panic: runtime error: index out of range [0] with length 0

goroutine 15 [running]:
terraform-provider-infisical/internal/provider/resource.(*ProjectUserResource).Create(0xc0003d8080, {0xecb1b8, 0xc0000f0180}, {{{{0xed0430, 0xc000421170}, {0xc4c620, 0xc0000f1a70}}, {0xed2c28, 0xc000436460}}, {{{0xed0430, ...}, ...}, ...}, ...}, ...)
	terraform-provider-infisical/internal/provider/resource/project_user_resource.go:256 +0x14c8
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).CreateResource(0xc00020c1e0, {0xecb1b8, 0xc0000f0180}, 0xc00060b5f8, 0xc00060b5d0)
	github.com/hashicorp/[email protected]/internal/fwserver/server_createresource.go:101 +0x578
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ApplyResourceChange(0xc00020c1e0, {0xecb1b8, 0xc0000f0180}, 0xc000172f50, 0xc00060b6e8)
	github.com/hashicorp/[email protected]/internal/fwserver/server_applyresourcechange.go:57 +0x4aa
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ApplyResourceChange(0xc00020c1e0, {0xecb1b8?, 0xc0000f0090?}, 0xc000172eb0)
	github.com/hashicorp/[email protected]/internal/proto6server/server_applyresourcechange.go:55 +0x38e
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ApplyResourceChange(0xc00021ae60, {0xecb1b8?, 0xc0004fb260?}, 0xc0000c4690)
	github.com/hashicorp/[email protected]/tfprotov6/tf6server/server.go:865 +0x3bc
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ApplyResourceChange_Handler({0xd3a1c0, 0xc00021ae60}, {0xecb1b8, 0xc0004fb260}, 0xc0005bef00, 0x0)
	github.com/hashicorp/[email protected]/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:518 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0001af200, {0xecb1b8, 0xc0004fb1d0}, {0xed1520, 0xc00047c000}, 0xc0005a86c0, 0xc00031e030, 0x1444978, 0x0)
	google.golang.org/[email protected]/server.go:1369 +0xdf8
google.golang.org/grpc.(*Server).handleStream(0xc0001af200, {0xed1520, 0xc00047c000}, 0xc0005a86c0)
	google.golang.org/[email protected]/server.go:1780 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
	google.golang.org/[email protected]/server.go:1019 +0x7f
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 36
	google.golang.org/[email protected]/server.go:1030 +0x125

Error: The terraform-provider-infisical_v0.12.3 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant