Index out of range error #10

Closed
opened 2025-11-20 04:18:42 -05:00 by saavagebueno · 1 comment
Owner

Originally created by @bickers117 on GitHub (Sep 10, 2019).

I have been continually getting the following error since the most recent image update a few days ago. Seems to be triggered by the addition of a Gotify notification trigger for a new IP address assignment.

panic: runtime error: index out of range [0] with length 0
goroutine 51 [running]:
ddns-updater/pkg/update.update(0xc0005994d0, 0xc0005960c0, 0xc0006c4180, 0xc000373780)
/tmp/gobuild/pkg/update/update.go:148 +0x12a0
created by ddns-updater/pkg/update.periodicServer
/tmp/gobuild/pkg/update/trigger.go:76 +0x1b8

Originally created by @bickers117 on GitHub (Sep 10, 2019). I have been continually getting the following error since the most recent image update a few days ago. Seems to be triggered by the addition of a Gotify notification trigger for a new IP address assignment. >panic: runtime error: index out of range [0] with length 0 >goroutine 51 [running]: >ddns-updater/pkg/update.update(0xc0005994d0, 0xc0005960c0, 0xc0006c4180, 0xc000373780) > /tmp/gobuild/pkg/update/update.go:148 +0x12a0 >created by ddns-updater/pkg/update.periodicServer > /tmp/gobuild/pkg/update/trigger.go:76 +0x1b8
Author
Owner

@qdm12 commented on GitHub (Sep 10, 2019):

Thanks for pointing this out!

I fixed it, ah I really need to write more unit tests sorry about that!

@qdm12 commented on GitHub (Sep 10, 2019): Thanks for pointing this out! I fixed it, ah I really need to write more unit tests sorry about that!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#10