Skip to content

Loading UI immediately causes panic: runtime error #1

@moertel

Description

@moertel

Starting the image works fine. However, as soon as I visit the site in the browser, the following stack trace appears in the logs (while the UI remains stuck at "Loading image spies for the first time..."):

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x65baaf]

goroutine 23 [running]:
github.com/imagespy/imagespy/vendor/github.com/imagespy/client-go.(*requester).send(0xc42027c830, 0xc42030ea00, 0xc42038a280, 0x48, 0x0)
	/go/src/github.com/imagespy/imagespy/vendor/github.com/imagespy/client-go/client.go:81 +0x24f
github.com/imagespy/imagespy/vendor/github.com/imagespy/client-go.(*requester).readAsJSON(0xc42027c830, 0xc4203102a0, 0x25, 0xc4202b4440, 0x1a, 0xc4203102a0)
	/go/src/github.com/imagespy/imagespy/vendor/github.com/imagespy/client-go/client.go:40 +0xed
github.com/imagespy/imagespy/vendor/github.com/imagespy/client-go.(*ImageSpyService).Get(0xc42027c850, 0xc4202b4440, 0x1a, 0x0, 0x0, 0x0)
	/go/src/github.com/imagespy/imagespy/vendor/github.com/imagespy/client-go/image.go:33 +0x93
github.com/imagespy/imagespy/web.(*SpiesHandler).Get.func1(0xc4201f4a80, 0xc4202c4a50, 0xc4202e8180, 0xc4202bd1d0)
	/go/src/github.com/imagespy/imagespy/web/web.go:48 +0x56
created by github.com/imagespy/imagespy/web.(*SpiesHandler).Get
	/go/src/github.com/imagespy/imagespy/web/web.go:47 +0x131

The only odd thing about some of our (private) images might be that they may contain additional / characters in them, e.g. an image name might be our-registry-server.com/path/to/someimage:latest.

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