Page:
Z.Troublshooting
No results
2
Z.Troublshooting
SluberskiHomeLab edited this page 2025-10-13 08:54:03 -05:00
Table of Contents
Troubleshooting
Common Issues
-
"Device not found" errors
- Make sure you've completed the OAuth flow via
/join - Check that the web player is active (visit the player URL from
/status)
- Make sure you've completed the OAuth flow via
-
Authentication expires
- Tokens expire after 1 hour by default
- Use
/joinagain to refresh authentication
-
Bot not responding
- Check that the bot has proper permissions in your Discord server
- Verify all environment variables are set correctly
-
Spotify Premium Required
- The Spotify Web Playback SDK requires a Spotify Premium account
- Free accounts cannot use Connect devices
Logs
Check Docker logs:
docker-compose logs -f enspotification
For local development:
npm run dev
API Endpoints
The bot exposes a web interface on the configured port:
GET /- Basic bot informationGET /callback- Spotify OAuth callbackGET /player?userId=<userId>- Web playback interfacePOST /device-ready- Internal device registrationGET /health- Health check endpoint
Health Monitoring
The application includes a health endpoint:
# Check application health
curl http://localhost:3000/health
# Expected response:
{
"status": "healthy",
"timestamp": "2025-10-13T13:40:26.752Z",
"uptime": 177.289956876,
"discord": "connected",
"activeUsers": 0,
"activeConnections": 0
}