1.4 KiB
1.4 KiB
MusicLink Worklog
2026-01-20
Current Status
- Backend: Go (v1.22.8) bot using Matterbridge WebSocket API.
- Deployment: NixOS based (flake.nix), currently managed on
ops-jrz1. - Issues:
- Crash Loop:
musiclink.serviceis failing withpanic: repeated read on failed websocket connection. - API Instability:
idonthavespotifyAPI reported to be returning 500s. - Environment:
matterbridge.servicenot found on local system (likely running elsewhere or under a different name).
- Crash Loop:
Actions Taken
- Investigation:
- Verified
musiclink.servicestatus and readbot-crash.log. - Confirmed the panic location in
internal/bot/bot.go:186. - Verified
idonthavespotifyAPI status: Currently responsive (200 OK) for specific Spotify album links. Intermittent 500s may still occur. - Tested Odesli (song.link) API as a potential fallback.
- Verified
- Analysis:
- Identified that
readLoopinbot.goneeds to handle connection closures more gracefully to avoid the "repeated read" panic. - Verified that secrets (Matterbridge token) are handled via
sops-nixby the platform team.
- Identified that
Next Steps
- Implement fix for WebSocket panic in
internal/bot/bot.go. - Finalize investigation into
idonthavespotify500 errors. - If 500s persist, implement Odesli (song.link) as an alternative service provider.
- Coordinate with platform team regarding
matterbridgeservice status.