Skip to content

Import prebuilt - error panic: interface conversion: interface {} is map[string]interface {}, not string #96

@davhparry

Description

@davhparry

For what it's worth, importing the prebuilt via postman worked.

ipctl import prebuilt 'bundles/prebuilt/@sedemos_aws-platform-access-request.prebuilt.json' --config ./bin/config --profile local --verbose
2025-03-27T15:15:59Z INF ipctl v0.7.0 (fe8a857)
2025-03-27T15:15:59Z INF connection timeout is 5 second(s)
2025-03-27T15:15:59Z INF Creating new http client
panic: interface conversion: interface {} is map[string]interface {}, not string

goroutine 1 [running]:
github.com/itential/ipctl/internal/runners.(*PrebuiltRunner).Import(0xc000282c40, {{0xc00046a5a0, 0x1, 0x6}, {0x5fe1720, 0xc0003b6400}, {0x5f78820, 0xc0002b3610}, {0x0, 0x0}, ...})
	/Users/dafyddhughes-parry/Applications/pronghorn/cli-tools/ipctl/internal/runners/prebuilts.go:276 +0x9f8
github.com/itential/ipctl/internal/handlers.NewCommand.func1(0xc0003c4100?, {0xc00046a5a0?, 0x4?, 0x5d5ea2d?})
	/Users/dafyddhughes-parry/Applications/pronghorn/cli-tools/ipctl/internal/handlers/runner.go:127 +0xf5
github.com/spf13/cobra.(*Command).execute(0xc0003c2308, {0xc00046a4e0, 0x6, 0x6})
	/Users/dafyddhughes-parry/Applications/pronghorn/cli-tools/ipctl/vendor/github.com/spf13/cobra/command.go:989 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001e8308)
	/Users/dafyddhughes-parry/Applications/pronghorn/cli-tools/ipctl/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
	/Users/dafyddhughes-parry/Applications/pronghorn/cli-tools/ipctl/vendor/github.com/spf13/cobra/command.go:1041
github.com/itential/ipctl/cmd.Execute()
	/Users/dafyddhughes-parry/Applications/pronghorn/cli-tools/ipctl/cmd/root.go:106 +0x20b
main.main()
	/Users/dafyddhughes-parry/Applications/pronghorn/cli-tools/ipctl/main.go:15 +0x13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions