This message was deleted.
# ask-ai
s
This message was deleted.
t
Thanks for reaching out, Pranav. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm sorry to hear you're having trouble with Firebase Firestore calls failing in your deployed LiveKit agent. Let's work through some common reasons this might be happening: • Missing Firebase Credentials: When you run things locally, your Firebase credentials (like service account keys) might be safely stored in a
.env.local
file or directly in your environment. However, these credentials don’t automatically carry over during deployment. To fix this, make sure you securely provide these credentials during deployment using LiveKit CLI options such as
--secrets
,
--secrets-file
, or
--secret-mount
. • Network Restrictions: Sometimes, the LiveKit Cloud environment might have network-level restrictions that prevent outbound HTTPS requests to Firebase endpoints (like
*.googleapis.com
). It’s a good idea to check whether LiveKit Cloud allows outbound traffic to these endpoints or if you need to adjust any settings to enable it. Here’s a simple plan to help you move forward: 1. Double-check that all necessary Firebase credentials are securely injected during deployment. 2. Make sure your agent code is set up to read Firebase configuration from environment variables or secret mounts. 3. Take a look at the runtime logs using LiveKit’s log collection tools to spot any authentication errors or connection issues. If you’d like, I’m here to help you step-by-step through any of these points. Just let me know! Sources: Log collection | LiveKit Docs | agent/README.md | cmd/lk/agent.go | Deploying to production | LiveKit Docs