https://pulumi.com logo
#general
Title
# general
b

busy-daybreak-12707

01/24/2024, 10:04 AM
It looks a bug , when refresh awsquicksightRefreshSchedule
Copy code
Previewing refresh (dev-qs):
     Type                               Name             Plan        Info
     pulumi:pulumi:Stack                qs-dev-qs                    1 error
 ~   ├─ aws:quicksight:RefreshSchedule  RefreshSchedule  refresh     1 error
     └─ aws:quicksight:DataSet          example                      

Diagnostics:
  pulumi:pulumi:Stack (qs-dev-qs):
    error: preview failed

  aws:quicksight:RefreshSchedule (RefreshSchedule):
    error: Preview failed: Expected an Object, got: {<nil>}
And I thinks as the same reason. Can not import a awsquicksightRefreshSchedule
Copy code
Previewing import (dev-qs):
     Type                               Name       Plan       Info
     pulumi:pulumi:Stack                qs-dev-qs             1 error; 38 messages
 =   └─ aws:quicksight:RefreshSchedule  example    import     1 error

Diagnostics:
  aws:quicksight:RefreshSchedule (example):
    error: Preview failed: error reading from server: EOF

  pulumi:pulumi:Stack (qs-dev-qs):
    error: preview failed

    panic: runtime error: index out of range [0] with length 0
    goroutine 71 [running]:
    <http://github.com/hashicorp/terraform-provider-aws/internal/service/quicksight.expandSchedule({0x1217a8d8|github.com/hashicorp/terraform-provider-aws/internal/service/quicksight.expandSchedule({0x1217a8d8>, 0xc0031626c0}, {0x108a7cbd, 0x3}, {{0x0, {0x0, 0x0}}, {0x0, {0x0, 0x0}}, ...})
    	/home/runner/work/pulumi-aws/pulumi-aws/upstream/internal/service/quicksight/refresh_schedule.go:524 +0x467
    <http://github.com/hashicorp/terraform-provider-aws/internal/service/quicksight.(*resourceRefreshSchedule).ValidateConfig(0xc00315ef00|github.com/hashicorp/terraform-provider-aws/internal/service/quicksight.(*resourceRefreshSchedule).ValidateConfig(0xc00315ef00>?, {0x1217a8d8, 0xc0031626c0}, {{{{0x121a0ff8, 0xc003162390}, {0xebe4800, 0xc00315fdd0}}, {0x121b0108, 0xc001ab3310}}}, 0xc0030c3e90)
    	/home/runner/work/pulumi-aws/pulumi-aws/upstream/internal/service/quicksight/refresh_schedule.go:419 +0x1b4
    <http://github.com/hashicorp/terraform-provider-aws/internal/provider/fwprovider.(*wrappedResource).ValidateConfig(0xc0030cf800|github.com/hashicorp/terraform-provider-aws/internal/provider/fwprovider.(*wrappedResource).ValidateConfig(0xc0030cf800>, {0x1217a8d8, 0xc00315ef00}, {{{{0x121a0ff8, 0xc003162390}, {0xebe4800, 0xc00315fdd0}}, {0x121b0108, 0xc001ab3310}}}, 0xc0030c3e90)
    	/home/runner/work/pulumi-aws/pulumi-aws/upstream/internal/provider/fwprovider/intercept.go:304 +0xf3
    <http://github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ValidateResourceConfig(0xc000ff6580|github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ValidateResourceConfig(0xc000ff6580>, {0x1217a8d8, 0xc00315ef00}, 0xc0030c3c98, 0xc0023410b0)
    	/home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-framework@v0.0.0-20230922145027-1535d08c1d47/internal/fwserver/server_validateresourceconfig.go:93 +0x44b
    <http://github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ValidateResourceConfig(0xc000ff6580|github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ValidateResourceConfig(0xc000ff6580>, {0x1217a8d8?, 0xc0039e1c50?}, 0xc0030c3c80)
    	/home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-framework@v0.0.0-20230922145027-1535d08c1d47/internal/proto6server/server_validateresourceconfig.go:47 +0x47d
    <http://github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge.(*provider).validateResourceConfig(0xc000e92a80|github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge.(*provider).validateResourceConfig(0xc000e92a80>, {0x1217a8d8, 0xc0039e1c50}, {0xc003232000, 0x4e}, {{0xc002496930, 0x2e}, 0xc0039e1d40, {0x109e2be1, 0x1f}, ...}, ...)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/pf@v0.24.0/tfbridge/provider_check.go:110 +0x1d7
    <http://github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge.(*provider).CheckWithContext(0xc000e92a80|github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge.(*provider).CheckWithContext(0xc000e92a80>, {0x1217a8d8?, 0xc0039e1590?}, {0xc003232000, 0x4e}, 0x0?, 0xc0038175b8?, 0x29?, {0xc001a26920, 0x20, ...})
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/pf@v0.24.0/tfbridge/provider_check.go:78 +0x5a5
    <http://github.com/pulumi/pulumi-terraform-bridge/pf/internal/plugin.(*providerServer).Check(0xc003220150|github.com/pulumi/pulumi-terraform-bridge/pf/internal/plugin.(*providerServer).Check(0xc003220150>, {0x1217a8d8, 0xc0039e1590}, 0xc003d95260)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/pf@v0.24.0/internal/plugin/provider_server.go:295 +0x178
    <http://github.com/pulumi/pulumi-terraform-bridge/x/muxer.(*muxer).Check.func1({0x121cbad8|github.com/pulumi/pulumi-terraform-bridge/x/muxer.(*muxer).Check.func1({0x121cbad8>?, 0xc003220150?})
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/x/muxer@v0.0.7/muxer.go:351 +0x30
    <http://github.com/pulumi/pulumi-terraform-bridge/x/muxer.resourceMethod[...](0xc0031ae2a0|github.com/pulumi/pulumi-terraform-bridge/x/muxer.resourceMethod[...](0xc0031ae2a0>?, 0x40, 0xc0038176e8?)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/x/muxer@v0.0.7/muxer.go:322 +0xb5
    <http://github.com/pulumi/pulumi-terraform-bridge/x/muxer.(*muxer).Check(0x0|github.com/pulumi/pulumi-terraform-bridge/x/muxer.(*muxer).Check(0x0>?, {0x1217a8d8?, 0xc0039e1590?}, 0x40?)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/x/muxer@v0.0.7/muxer.go:350 +0x65
    <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Check_Handler.func1({0x1217a8d8|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Check_Handler.func1({0x1217a8d8>, 0xc0039e1590}, {0x100a85c0?, 0xc003d95260})
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.101.1/proto/go/provider_grpc.pb.go:557 +0x72
    <http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x1217a8d8|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x1217a8d8>, 0xc0039e0fc0}, {0x100a85c0, 0xc003d95260}, 0xc00278d4e0, 0xc001ae26d8)
    	/home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x3d0
    <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Check_Handler({0x106a78e0|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Check_Handler({0x106a78e0>?, 0xc0031ae2a0}, {0x1217a8d8, 0xc0039e0fc0}, 0xc0002a0080, 0xc0026f7be0)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.101.1/proto/go/provider_grpc.pb.go:559 +0x135
    <http://google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000b61e0|google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000b61e0>, {0x1217a8d8, 0xc0039e0e70}, {0x121a39a0, 0xc001105860}, 0xc001bfe5a0, 0xc0032201e0, 0x1b1f4a70, 0x0)
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.60.0/server.go:1372 +0xe03
    <http://google.golang.org/grpc.(*Server).handleStream(0xc0000b61e0|google.golang.org/grpc.(*Server).handleStream(0xc0000b61e0>, {0x121a39a0, 0xc001105860}, 0xc001bfe5a0)
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.60.0/server.go:1783 +0xfec
    <http://google.golang.org/grpc.(*Server).serveStreams.func2.1()|google.golang.org/grpc.(*Server).serveStreams.func2.1()>
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.60.0/server.go:1016 +0x59
    created by <http://google.golang.org/grpc.(*Server).serveStreams.func2|google.golang.org/grpc.(*Server).serveStreams.func2> in goroutine 65
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.60.0/server.go:1027 +0x115