my live kit agent return "failed to send usage rep...
# ask-ai
r
my live kit agent return "failed to send usage report: http status: 401" this error message
t
Thanks for reaching out, Av. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! That error message, "failed to send usage report: http status: 401," usually means there's an issue with authentication. Here are a few common reasons why this might happen: • The API key or token might be missing, expired, or incorrect. • The authentication headers might not be set up properly (like missing
Authorization: Bearer <token>
). • Or maybe the required credentials aren’t provided in your environment variables or configuration files. To get this sorted out, you can try the following: 1. Double-check that your LiveKit API keys and secrets are correctly set in your environment or config. 2. Make sure the token you’re using has the right permissions for what you’re trying to do. 3. Confirm that the
Authorization
header is properly formatted and included in your request. If you want, I’m here to help you troubleshoot further—just let me know! Sources: livekit-plugins/livekit-plugins-bey/livekit/plugins/bey/avatar.py | tools/server/tests/unit/test_security.py | Authentication | LiveKit Docs | replay/cloud_replay.twirp.go | protocol/unity_proto/UnityAPI.twirp.go