[GH-ISSUE #427] http2: panic serving x.x.x.x: unable to find appropriate key #634

Closed
opened 2026-08-05 00:39:21 -04:00 by saavagebueno · 1 comment
Owner

Originally created by @mlsmaycon on GitHub (Aug 17, 2022).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/427

When using a valid URL but with an invalid response for AuthKeysLocation, management returns the error:

2022/08/17 16:19:38 http2: panic serving X.X.X.X:24409: unable to find appropriate key
goroutine 49 [running]:
net/http.(*http2serverConn).runHandler.func1()
        /opt/hostedtoolcache/go/1.18.5/x64/src/net/http/h2_bundle.go:5896 +0x125
panic({0xa48aa0, 0xc0003e8890})
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/panic.go:838 +0x207
github.com/netbirdio/netbird/management/server/http/middleware.NewJwtMiddleware.func1(0xc0002e8050)
        /home/runner/work/netbird/netbird/management/server/http/middleware/handler.go:48 +0x385```

Originally created by @mlsmaycon on GitHub (Aug 17, 2022). Original GitHub issue: https://github.com/netbirdio/netbird/issues/427 When using a valid URL but with an invalid response for AuthKeysLocation, management returns the error: ```shell 2022/08/17 16:19:38 http2: panic serving X.X.X.X:24409: unable to find appropriate key goroutine 49 [running]: net/http.(*http2serverConn).runHandler.func1() /opt/hostedtoolcache/go/1.18.5/x64/src/net/http/h2_bundle.go:5896 +0x125 panic({0xa48aa0, 0xc0003e8890}) /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/panic.go:838 +0x207 github.com/netbirdio/netbird/management/server/http/middleware.NewJwtMiddleware.func1(0xc0002e8050) /home/runner/work/netbird/netbird/management/server/http/middleware/handler.go:48 +0x385```
saavagebueno added the bugmanagement-service labels 2026-08-05 00:39:21 -04:00
Author
Owner

@nazarewk commented on GitHub (Apr 16, 2025):

@mlsmaycon is it still relevant?

<!-- gh-comment-id:2809971592 --> @nazarewk commented on GitHub (Apr 16, 2025): @mlsmaycon is it still relevant?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#634