interface conversion: interface {} is nil, not map[string]interface {}
See original GitHub issueI am receiving the following error when attempting to create a gcp:storage:BucketACL object:
gcp:storage:BucketACL (bucket-acl):
error: Plan apply failed: all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:52527: connect: connection refused"
Diagnostics:
pulumi:pulumi:Stack (test):
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 22 [running]:
github.com/pulumi/pulumi-gcp/vendor/github.com/terraform-providers/terraform-provider-google-beta/google-beta.resourceStorageBucketCreate(0xc000424460, 0x2cde9c0, 0xc000290d80, 0xc000424460, 0x0)
/home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/github.com/terraform-providers/terraform-provider-google-beta/google-beta/resource_storage_bucket.go:316 +0x12e1
github.com/pulumi/pulumi-gcp/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc0001be280, 0xc0000dcc30, 0xc000872b40, 0x2cde9c0, 0xc000290d80, 0xc000872b01, 0x0, 0x0)
/home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:286 +0x3b4
github.com/pulumi/pulumi-gcp/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc0001bed80, 0xc000235840, 0xc0000dcc30, 0xc000872b40, 0xc000872b40, 0x0, 0x0)
/home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:285 +0x18f
github.com/pulumi/pulumi-gcp/vendor/github.com/pulumi/pulumi-terraform/pkg/tfbridge.(*Provider).Create(0xc000274d80, 0x3513540, 0xc0005fb8c0, 0xc000520800, 0xc000274d80, 0x2ccb901, 0xc000520e00)
/home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/github.com/pulumi/pulumi-terraform/pkg/tfbridge/provider.go:611 +0x550
github.com/pulumi/pulumi-gcp/vendor/github.com/pulumi/pulumi/sdk/proto/go._ResourceProvider_Create_Handler.func1(0x3513540, 0xc0005fb8c0, 0x2f6d980, 0xc000520800, 0x3012fe0, 0x4a09458, 0x3513540, 0xc0005fb8c0)
/home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/github.com/pulumi/pulumi/sdk/proto/go/provider.pb.go:1516 +0x86
github.com/pulumi/pulumi-gcp/vendor/github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x3513540, 0xc0005fa750, 0x2f6d980, 0xc000520800, 0xc000493340, 0xc000493360, 0x0, 0x0, 0x34c3be0, 0xc0003e1570)
/home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc/server.go:61 +0x360
github.com/pulumi/pulumi-gcp/vendor/github.com/pulumi/pulumi/sdk/proto/go._ResourceProvider_Create_Handler(0x30650a0, 0xc000274d80, 0x3513540, 0xc0005fa750, 0xc0000dcbe0, 0xc000492380, 0x3513540, 0xc0005fa750, 0xc000568000, 0x4d4)
/home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/github.com/pulumi/pulumi/sdk/proto/go/provider.pb.go:1518 +0x158
github.com/pulumi/pulumi-gcp/vendor/google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000b6f00, 0x3525280, 0xc0000b7200, 0xc0004b0600, 0xc0005173b0, 0x49db9d0, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/google.golang.org/grpc/server.go:972 +0x470
github.com/pulumi/pulumi-gcp/vendor/google.golang.org/grpc.(*Server).handleStream(0xc0000b6f00, 0x3525280, 0xc0000b7200, 0xc0004b0600, 0x0)
/home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/google.golang.org/grpc/server.go:1252 +0xda6
github.com/pulumi/pulumi-gcp/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc00003af90, 0xc0000b6f00, 0x3525280, 0xc0000b7200, 0xc0004b0600)
/home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/google.golang.org/grpc/server.go:691 +0x9f
created by github.com/pulumi/pulumi-gcp/vendor/google.golang.org/grpc.(*Server).serveStreams.func1
/home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/google.golang.org/grpc/server.go:689 +0xa1
My code:
acl_resource_opts = pulumi.ResourceOptions(depends_on=[logging_bucket_obj], parent=logging_bucket_obj)
logging_bucket_acl_name = logging_bucket_name + '-acl'
logging_bucket_acl_obj = pulumi_gcp.storage.BucketACL(logging_bucket_acl_name,
__name__=logging_bucket_acl_name,
bucket=logging_bucket_obj.name,
opts=acl_resource_opts,
predefined_acl=log_bucket_obj_predefined_acl)
pulumi.export(logging_bucket_acl_name, logging_bucket_acl_obj.id)
I can create the bucket (logging_bucket_obj) just fine but the acl fails.
Currently on version v0.17.22 but this issue was on v0.17.21 also.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
interface conversion interface {} is []interface {}, not map[string ...
I am using the serpwow API to perform the google search and am trying to parse the response. However I am getting the...
Read more >panic: interface conversion: interface {} is nil, not map[string ...
bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. regression Pertains to a ...
Read more >how to cast interface{} to map[string]string : r/golang - Reddit
I used container to do this type MapContainer struct { m map[string]string } // .. say "reddit" is type of interface{} reddit.(MapContainer).m Is…...
Read more >upgrade of RHACM 2.4 to 2.5 fails due to ...
Issue. upgrade of RHACM 2.4 to 2.5 fails due to "panic: interface conversion: interface {} is nil, not map[string]interface {}"; upgrade of ...
Read more >Golang interface to string conversion possible? [SOLVED]
golang interface to string conversion is not supported directly but we can use type assertion or fmt.Sprintf to do the type casting.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I am having this issue with while i use “google/protobuf/struct.proto” with grpc gateway I didn’t have this issue with grpc v1.31.1 after i upgraded to v1.32.0 i am getting the error : panic: interface conversion: interface {} is string, not map[string]interface {} go version : 1.14.4
Closing as this is tracked in https://github.com/terraform-providers/terraform-provider-google-beta/pull/925.