我創建了一個項目dawai-5555和一個json動作文件dawai.json,如Google的文檔https://developers.google.com/actions/sdk/define-actions中所述。 當我嘗試使用Windows上傳它(我測試了32位/ 64位版本)從谷歌gactions命令行工具,我得到以下錯誤:gactions在上傳谷歌動作時CLI在Windows上崩潰
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x4ebc99]
goroutine 1 [running]:
github.com/urfave/cli.HandleAction.func1(0x110c191c)
/usr/local/google/home/gkal/code/go/src/github.com/urfave/cli/app.go:478 +0x1f6
panic(0x69e0c0, 0x8685f8)
/usr/lib/google-golang/src/runtime/panic.go:491 +0x1d0
github.com/Jeffail/gabs.(*Container).Bytes(0x0, 0x0, 0x0, 0x4000106)
/usr/local/google/home/gkal/code/go/src/github.com/Jeffail/gabs/gabs.go:459 +0x19
github.com/Jeffail/gabs.(*Container).String(0x0, 0x11139da0, 0x6d902d)
/usr/local/google/home/gkal/code/go/src/github.com/Jeffail/gabs/gabs.go:483 +0x21
main.getLocaleFromActionPackage(0x110a3d48, 0xd, 0x110a3d48)
/usr/local/google/home/gkal/code/go/src/github.com/gkaldevrel/cli/gactions/gactions.go:605 +0xba
main.commandUpdate.func1(0x110f3860)
/usr/local/google/home/gkal/code/go/src/github.com/gkaldevrel/cli/gactions/gactions.go:726 +0x1b3
reflect.Value.call(0x67d940, 0x6effbc, 0x13, 0x6d89ad, 0x4, 0x110c1900, 0x1, 0x1, 0x110c18c4, 0x6d2920, ...)
/usr/lib/google-golang/src/reflect/value.go:434 +0x723
reflect.Value.Call(0x67d940, 0x6effbc, 0x13, 0x110c1900, 0x1, 0x1, 0x0, 0x5ac617, 0x6d8aa9)
/usr/lib/google-golang/src/reflect/value.go:302 +0x7f
github.com/urfave/cli.HandleAction(0x67d940, 0x6effbc, 0x110f3860, 0x0, 0x0)
/usr/local/google/home/gkal/code/go/src/github.com/urfave/cli/app.go:487 +0x114
github.com/urfave/cli.Command.Run(0x6d90c3, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x6eb16e, 0x4b, 0x0, ...)
/usr/local/google/home/gkal/code/go/src/github.com/urfave/cli/command.go:191 +0x875
github.com/urfave/cli.(*App).Run(0x110de410, 0x110c8000, 0x7, 0x8, 0x0, 0x0)
/usr/local/google/home/gkal/code/go/src/github.com/urfave/cli/app.go:240 +0x462
github.com/urfave/cli.(*App).RunAndExitOnError(0x110de410)
/usr/local/google/home/gkal/code/go/src/github.com/urfave/cli/app.go:257 +0x43
main.main()
/usr/local/google/home/gkal/code/go/src/github.com/gkaldevrel/cli/gactions/gactions.go:157 +0x75d
難道我要面對這個問題的唯一一個?
感謝您的幫助。
F.
有在Linux同樣的問題:https://stackoverflow.com/questions/46591266/go-panic-when-using-gaction-to-update-google-home-assistant-package。剛發佈了一條推文到Twitter的Google操作帳戶。也許你也應該:https://twitter.com/actionsongoogle –