netbird icon indicating copy to clipboard operation
netbird copied to clipboard

index out of range [1] with length 1 on MacOS GetInfo

Open mlsmaycon opened this issue 3 years ago • 0 comments

When the process doesn't have permission to access the FS, it is killed by the OS and an error as such is reported:

STDOUT

getInfo: signal: killed

STDERR

panic: runtime error: index out of range [1] with length 1
goroutine 228730 [running]:
[github.com/netbirdio/netbird/client/system.GetInfo({0x193cf20](http://github.com/netbirdio/netbird/client/system.GetInfo(%7B0x193cf20), 0xc000d654a0})
	/home/runner/work/netbird/netbird/client/system/info_darwin.go:24 +0x2a6
[github.com/netbirdio/netbird/client/internal.loginPeer({0x193cf20](http://github.com/netbirdio/netbird/client/internal.loginPeer(%7B0x193cf20), 0xc000d654a0}, {0x76, 0x6f, 0x9f, 0x14, 0xb2, 0x7d, 0x22, 0x3a, ...}, ...)
	/home/runner/work/netbird/netbird/client/internal/login.go:64 +0x65
[github.com/netbirdio/netbird/client/internal.Login({0x193cf20](http://github.com/netbirdio/netbird/client/internal.Login(%7B0x193cf20), 0xc000d654a0}, 0xc0000aeb60, {0x0, 0x0}, {0x0, 0x0})

mlsmaycon avatar Jul 29 '22 23:07 mlsmaycon