twirp error malformed: livekit-cli version header ...
# ask-ai
b
twirp error malformed: livekit-cli version header is required upgrade your livekit-cli to the latest version
t
Thanks for reaching out, Suba. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like the error is happening because your LiveKit CLI version is a bit outdated and missing the necessary version header. No worries though! To get everything working smoothly, let's update your LiveKit CLI to the latest version. Here’s how you can do it: • macOS (using Homebrew):
brew upgrade livekit-cli
• Linux:
curl -sSL https://get.livekit.io | bash
• Windows or Manual Installation: You can download the latest precompiled binaries from the GitHub releases page. • From Source:
git pull origin main
go install github.com/livekit/livekit-cli/v2/cmd/lk@latest
Once you’ve updated, just double-check your CLI version by running:
Copy code
lk --version
This update should fix the issue since the new CLI includes the required version headers in API requests. If you run into any trouble or have questions along the way, feel free to reach out—I’m here to help! Sources: LiveKit CLI Setup | LiveKit Docs | Troubleshooting & Common Issues | livekit/livekit_composite | DeepWiki | Community & Support | livekit/livekit_composite | DeepWiki | Agent deployment CLI reference | LiveKit Docs | CLI Tools & Token Management | livekit/livekit_composite | DeepWiki