Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

fcli无法在命令行中调用函数 #26

Open
hilr opened this issue Feb 9, 2018 · 0 comments
Open

fcli无法在命令行中调用函数 #26

hilr opened this issue Feb 9, 2018 · 0 comments

Comments

@hilr
Copy link

hilr commented Feb 9, 2018

在shell模式下,可以调用函数成功,在命令行模式下不行,

$fcli function invoke -s  service -f function-name --event-str '{......}'
panic: assignment to entry in nil map

goroutine 1 [running]:
aliyun/serverless/fcli/cmd.prepareInvokeFuncInput(0xc42013bbdf, 0xc4201605f9)
	/ext-go/1/src/aliyun/serverless/fcli/cmd/invoke_function.go:111 +0xb2
aliyun/serverless/fcli/cmd.invokeFuncRun(0xc42015e090, 0x0, 0x0)
	/ext-go/1/src/aliyun/serverless/fcli/cmd/invoke_function.go:78 +0x26
aliyun/serverless/fcli/cmd.glob..func13(0x485b960, 0xc420097500, 0x0, 0x6)
	/ext-go/1/src/aliyun/serverless/fcli/cmd/invoke_function.go:46 +0x37
aliyun/serverless/fcli/vendor/github.com/spf13/cobra.(*Command).execute(0x485b960, 0xc420097440, 0x6, 0x6, 0x485b960, 0xc420097440)
	/ext-go/1/src/aliyun/serverless/fcli/vendor/github.com/spf13/cobra/command.go:603 +0x234
aliyun/serverless/fcli/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x485c400, 0x0, 0x485c400, 0xc42013bf50)
	/ext-go/1/src/aliyun/serverless/fcli/vendor/github.com/spf13/cobra/command.go:689 +0x339
aliyun/serverless/fcli/vendor/github.com/spf13/cobra.(*Command).Execute(0x485c400, 0xc42013bf68, 0x4492fcf)
	/ext-go/1/src/aliyun/serverless/fcli/vendor/github.com/spf13/cobra/command.go:648 +0x2b
aliyun/serverless/fcli/cmd.Execute()
	/ext-go/1/src/aliyun/serverless/fcli/cmd/root.go:36 +0x2d
main.main()
	/ext-go/1/src/aliyun/serverless/fcli/main.go:19 +0x20
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant