Giter Site home page Giter Site logo

terraform-provider-typesense's People

Contributors

omarkhd avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

cookiesco

terraform-provider-typesense's Issues

Error `index out of range [0] with length 0` importing cluster

Note: I'm using the "CookiesCo" TF provider. That github repo does not have an "Issues" tab enabled, but its "New pull request" sends me to this github project, so I'm hoping this is the right place to report this.

I have the following section to try to import my cluster:

import {
  to = typesense_cluster.dev
  id = "REDACTED"
}

When I run the command below, it errors out as seen in the output:

$ terraform plan -generate-config-out=cluster.tf
Running plan in Terraform Cloud. Output will stream here. Pressing Ctrl-C
will stop streaming the logs, but will not stop the plan running remotely.

Preparing the remote plan...

The remote workspace is configured to work with configuration at
backend/search/dev relative to the target repository.

[...]

Waiting for the plan to start...

Terraform v1.7.5
on linux_amd64
Initializing plugins and modules...
null_resource.emptiness: Refreshing state... [id=2551239117647289226]
typesense_cluster.dev: Refreshing state... [id=h23dsn4myuop5al8p]
typesense_cluster.dev: Drift detected (delete)
╷
│ Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the
│ plugin6.(*GRPCProvider).ReadResource call. The plugin logs may contain more
│ details.
╵

Stack trace from the terraform-provider-typesense_v1.0.0 plugin:

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

goroutine 83 [running]:
terraform-provider-typesense/typesense.(*clusterResource).Read(0xc0000123f0, {0xc86160, 0xc0002023c0}, {{{{0xc8a030, 0xc000203800}, {0xaa1860, 0xc000203680}}, {0xc8b2e8, 0xc0001388c0}}, 0xc0000124c8, ...}, ...)
        terraform-provider-typesense/typesense/cluster_resource.go:236 +0x665
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ReadResource(0xc000132f20, {0xc86160, 0xc0002023c0}, 0xc000202540, 0xc0000e7610)
        github.com/hashicorp/[email protected]/internal/fwserver/server_readresource.go:97 +0x617
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ReadResource(0xc000132f20, {0xc86160?, 0xc00052bf80?}, 0xc0000bbfc0)
        github.com/hashicorp/[email protected]/internal/proto6server/server_readresource.go:52 +0x27b
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ReadResource(0xc00012b220, {0xc86160?, 0xc00052b5f0?}, 0xc0000a0a20)
        github.com/hashicorp/[email protected]/tfprotov6/tf6server/server.go:746 +0x4b1
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ReadResource_Handler({0xb49140?, 0xc00012b220}, {0xc86160, 0xc00052b5f0}, 0xc0000ce4d0, 0x0)
        github.com/hashicorp/[email protected]/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:349 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0003341e0, {0xc8a318, 0xc0002904e0}, 0xc000605320, 0xc0003ffd70, 0x10b4e70, 0x0)
        google.golang.org/[email protected]/server.go:1340 +0xd23
google.golang.org/grpc.(*Server).handleStream(0xc0003341e0, {0xc8a318, 0xc0002904e0}, 0xc000605320, 0x0)
        google.golang.org/[email protected]/server.go:1713 +0xa2f
google.golang.org/grpc.(*Server).serveStreams.func1.2()
        google.golang.org/[email protected]/server.go:965 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
        google.golang.org/[email protected]/server.go:963 +0x28a

Error: The terraform-provider-typesense_v1.0.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.

Operation failed: failed running terraform plan (exit 1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.