Skip to content

html5-list failed due to broker error #16

@micellius

Description

@micellius

Description

When service html5-apps-repo broker returns error to cloud controller, html5-plugin crashes with panic runtime error and prints stack trace. This may happen with any plugin command that requires creation of new service instance or service key (e.g cf html5-list).

Environment

  • OS (macOS/Windows) - Windows
  • SAP CF Landscape (e.g. Canary) - Canary
  • IaaS provider (e.g. AWS) - AWS
  • Region (e.g. eu10) - eu10

CLI Output

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x10 pc=0x746fc1]
 
goroutine 1 [running]:
cf-html5-apps-repo-cli-plugin/clients.CreateServiceKey(0x8c3dc0, 0xc000040190, 0xc0002cca80, 0x24, 0x1, 0x1, 0x1)
        cf-html5-apps-repo-cli-plugin/clients/create_service_key.go:37 +0x341
cf-html5-apps-repo-cli-plugin/commands.(*HTML5Command).GetHTML5Context(0xbb8880, 0xc0000104d0, 0x7, 0xc000010700, 0x10, 0xc00000c9f0, 0x24, 0xc000118140, 0x7, 0xc00010e240, ...)
        cf-html5-apps-repo-cli-plugin/commands/html5_base_command.go:100 +0x77f
cf-html5-apps-repo-cli-plugin/commands.(*ListCommand).ListSpaceApps(0xbb8880, 0x23)
        cf-html5-apps-repo-cli-plugin/commands/html5_list_command.go:388 +0x43d
cf-html5-apps-repo-cli-plugin/commands.(*ListCommand).Execute(0xbb8880, 0xc0000560f0, 0x0, 0x1, 0xc000040190)
        cf-html5-apps-repo-cli-plugin/commands/html5_list_command.go:49 +0xcd8
main.(*HTML5Plugin).Run(0xbd4a00, 0x8c3dc0, 0xc000040190, 0xc0000560e0, 0x1, 0x2)
        cf-html5-apps-repo-cli-plugin/html5_plugin.go:43 +0x1b8
cf-html5-apps-repo-cli-plugin/vendor/github.com/cloudfoundry/cli/plugin.Start(0x8bd900, 0xbd4a00)
        cf-html5-apps-repo-cli-plugin/vendor/github.com/cloudfoundry/cli/plugin/plugin_shim.go:30 +0x27d
main.main()
        cf-html5-apps-repo-cli-plugin/html5_plugin.go:63 +0x44

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions