Skip to content

Instantly share code, notes, and snippets.

@cozzbie
Created November 18, 2022 18:31
Show Gist options
  • Save cozzbie/3637bfcc12e93f0a041da2b65576c488 to your computer and use it in GitHub Desktop.
Save cozzbie/3637bfcc12e93f0a041da2b65576c488 to your computer and use it in GitHub Desktop.
Docker Provider Error
│ Error: Request cancelled
│ The plugin.(*GRPCProvider).ApplyResourceChange request was cancelled.
│ Error: Request cancelled
│ The plugin.(*GRPCProvider).ApplyResourceChange request was cancelled.
Stack trace from the terraform-provider-docker_v2.23.0 plugin:
panic: runtime error: index out of range [1] with length 1
goroutine 56 [running]:
github.com/terraform-providers/terraform-provider-docker/internal/provider.parseAuthHeader({0xc000544001?, 0x1272101?})
github.com/terraform-providers/terraform-provider-docker/internal/provider/data_source_docker_registry_image.go:162 +0x1a5
github.com/terraform-providers/terraform-provider-docker/internal/provider.getAuthToken({0xc000544001?, 0x1a5eadc?}, {0xc000036410, 0xf}, {0xc0002e4000, 0xdd}, 0x0?)
github.com/terraform-providers/terraform-provider-docker/internal/provider/data_source_docker_registry_image.go:185 +0x5e
github.com/terraform-providers/terraform-provider-docker/internal/provider.deleteDockerRegistryImage({{0xc00059a640, 0x3f}, {0xc00045d6c0, 0x3f}, {0xc00059a640, 0x6}, {0xc0006b6000, 0xe}, {0xc0007f4000, 0x2f}, ...}, ...)
github.com/terraform-providers/terraform-provider-docker/internal/provider/resource_docker_registry_image_funcs.go:515 +0x78f
github.com/terraform-providers/terraform-provider-docker/internal/provider.resourceDockerRegistryImageDelete({0x1bbb468?, 0xc0002dad50?}, 0x0?, {0x18e1a00?, 0xc000030770})
github.com/terraform-providers/terraform-provider-docker/internal/provider/resource_docker_registry_image_funcs.go:99 +0x2c9
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).delete(0xc0002728c0, {0x1bbb468, 0xc0002dad50}, 0xd?, {0x18e1a00, 0xc000030770})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:758 +0x12e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0002728c0, {0x1bbb468, 0xc0002dad50}, 0xc00060e5b0, 0xc0002e8800, {0x18e1a00, 0xc000030770})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:806 +0x5fa
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc000285680, {0x1bbb468?, 0xc0002dac30?}, 0xc0002f42d0)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1021 +0xe3c
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc000330e60, {0x1bbb468?, 0xc0002da600?}, 0xc00032c230)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:818 +0x574
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x1a1b060?, 0xc000330e60}, {0x1bbb468, 0xc0002da600}, 0xc00032c1c0, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000001e0, {0x1bbe660, 0xc000294d00}, 0xc0002de480, 0xc0004329f0, 0x2150ba0, 0x0)
google.golang.org/[email protected]/server.go:1295 +0xb0b
google.golang.org/grpc.(*Server).handleStream(0xc0000001e0, {0x1bbe660, 0xc000294d00}, 0xc0002de480, 0x0)
google.golang.org/[email protected]/server.go:1636 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/[email protected]/server.go:932 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/[email protected]/server.go:930 +0x28a
Error: The terraform-provider-docker_v2.23.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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment