Panic when loading lhs-content
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia in server/plugin/graphql/lhs_request.go, in GetLHSData e fetchLHSData, quindi segui newIssueFromAssignmentResponse fino a newGithubIssue intorno alla riga 194. Usa il percorso /api/v1/lhs-content e lo stack trace fornito per analizzare la dereferenziazione intermittente di un puntatore nil. Il lavoro è concluso quando il caricamento di lhs-content non recupera più questa panic.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Not sure what caused it, it's not happening frequently, I just noticed it while checking the Mattermost log for something else:
warn [2026-02-26 15:20:33.614 +01:00] Recovered from a panic caller="app/plugin_api.go:1134" plugin_id=github url=/api/v1/lhs-content error="runtime error: invalid memory address or nil pointer dereference" stack="goroutine 6385881 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:26 +0x5e
github.com/mattermost/mattermost-plugin-github/server/plugin.(*Plugin).withRecovery-fm.(*Plugin).withRecovery.func1.1()
github.com/mattermost/mattermost-plugin-github/server/plugin/api.go:197 +0x65
panic({0xed36e0?, 0x19b7220?})
runtime/panic.go:792 +0x132
net/url.(*URL).String(0xe3c460?)
net/url/url.go:833 +0x2c
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql.newGithubIssue(0x0, {0x0, 0x0}, {0x0, 0x0}, {0x12143e0?}, {0xc001284450?}, {{0x0, 0x0, 0x0}}, ...)
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql/lhs_request.go:194 +0x8c
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql.newIssueFromAssignmentResponse(0xf021e0?)
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql/lhs_request.go:175 +0x345
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql.(*Client).fetchLHSData(0xc000e523c0, {0x121c6e8, 0xc000f077a0}, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0}, {0x0, ...}, ...)
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql/lhs_request.go:107 +0xde8
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql.(*Client).GetLHSData(0xc000e523c0, {0x121c6e8, 0xc000f077a0})
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql/lhs_request.go:46 +0x350
github.com/mattermost/mattermost-plugin-github/server/plugin.(*Plugin).getLHSData(0xffffffffffffffff?, 0xc000e52380)
github.com/mattermost/mattermost-plugin-github/server/plugin/api.go:1041 +0x2d
github.com/mattermost/mattermost-plugin-github/server/plugin.(*Plugin).getSidebarData(0xc0000e0000, 0xc000e52380)
github.com/mattermost/mattermost-plugin-github/server/plugin/api.go:1050 +0x2c
github.com/mattermost/mattermost-plugin-github/server/plugin.(*Plugin).getSidebarContent(0xc0000e0000, 0xc000e52380, {0x121b690, 0xc0004f0e70}, 0xc000de8101?)
github.com/mattermost/mattermost-plugin-github/server/plugin/api.go:1064 +0x2b
github.com/mattermost/mattermost-plugin-..."
warn [2026-02-26 15:20:33.616 +01:00] Recovered from a panic caller="app/plugin_api.go:1134" plugin_id=github url=/api/v1/lhs-content error="runtime error: invalid memory address or nil pointer dereference" stack="goroutine 6385862 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:26 +0x5e
github.com/mattermost/mattermost-plugin-github/server/plugin.(*Plugin).withRecovery-fm.(*Plugin).withRecovery.func1.1()
github.com/mattermost/mattermost-plugin-github/server/plugin/api.go:197 +0x65
panic({0xed36e0?, 0x19b7220?})
runtime/panic.go:792 +0x132
net/url.(*URL).String(0xe30001?)
net/url/url.go:833 +0x2c
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql.newGithubIssue(0x0, {0x0, 0x0}, {0x0, 0x0}, {0x12143e0?}, {0xc002c84180?}, {{0x0, 0x0, 0x0}}, ...)
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql/lhs_request.go:194 +0x8c
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql.newIssueFromAssignmentResponse(0xf021e0?)
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql/lhs_request.go:175 +0x345
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql.(*Client).fetchLHSData(0xc000e56800, {0x121c6e8, 0xc000e62bd0}, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0}, {0x0, ...}, ...)
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql/lhs_request.go:107 +0xde8
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql.(*Client).GetLHSData(0xc000e56800, {0x121c6e8, 0xc000e62bd0})
github.com/mattermost/mattermost-plugin-github/server/plugin/graphql/lhs_request.go:46 +0x350
github.com/mattermost/mattermost-plugin-github/server/plugin.(*Plugin).getLHSData(0xffffffffffffffff?, 0xc000e567c0)
github.com/mattermost/mattermost-plugin-github/server/plugin/api.go:1041 +0x2d
github.com/mattermost/mattermost-plugin-github/server/plugin.(*Plugin).getSidebarData(0xc0000e0000, 0xc000e567c0)
github.com/mattermost/mattermost-plugin-github/server/plugin/api.go:1050 +0x2c
github.com/mattermost/mattermost-plugin-github/server/plugin.(*Plugin).getSidebarContent(0xc0000e0000, 0xc000e567c0, {0x121b690, 0xc000d094c0}, 0xc000a60f01?)
github.com/mattermost/mattermost-plugin-github/server/plugin/api.go:1064 +0x2b
github.com/mattermost/mattermost-plugin-..."
- Lingua principale
- Go
- Stelle
- 180
- Fork
- 181
- Merge medio
- 1g 8h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mattermost/mattermost-plugin-github
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
mattermost/mattermost-plugin-github#996 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
mattermost/mattermost-plugin-github#937 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
Tutte le issue di mattermost/mattermost-plugin-github
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
open-telemetry/opentelemetry-go-compile-instrumentation#1467 ·
I maintainer di solito rispondono entro 3 giorni
-
Python 3.15 supportForse già presa @amnesiaof l’ha presa oggi. ApertaL: python L: python:uv
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
dependabot/dependabot-core#16524 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
duplication
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openvibely/openvibely#1443 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
canonical/service-mesh#845 ·
I maintainer di solito rispondono entro 1 giorno