Skip to content

fix: return cache instead of nil on GetToken error in authenticate - #14

Merged
lavr merged 1 commit into
mainfrom
fix-auth-header-parsing
Mar 23, 2026
Merged

fix: return cache instead of nil on GetToken error in authenticate#14
lavr merged 1 commit into
mainfrom
fix-auth-header-parsing

Conversation

@lavr

@lavr lavr commented Mar 23, 2026

Copy link
Copy Markdown
Owner

When GetToken failed (e.g. network unavailable), authenticate returned nil for the cache parameter. With failFast=false, this created a botSender with a nil cache, causing a panic on the first incoming request (e.g. Grafana webhook).

When GetToken failed (e.g. network unavailable), authenticate returned nil for the cache parameter. With failFast=false, this created a botSender with a nil cache, causing a panic on the first incoming request (e.g. Grafana webhook).
@lavr
lavr merged commit 70f00da into main Mar 23, 2026
7 checks passed
@lavr
lavr deleted the fix-auth-header-parsing branch March 27, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant