Command exited with code 0. Command output: return False async def _watch_firebase(self, user_id: str) -> None: poll_interval = self.default_poll_interval consecutive_errors = 0 while True: try: ws = self.load_workspace(user_id) if not ws.active or not ws.forward_to or ws.active_mode not in ("firebase", "fcm") or not ws.device_id: await asyncio.sleep(poll_interval) continue if not self.http: await asyncio.sleep(poll_interval) continue fb = normalize_firebase_url(ws.firebase_url) if not fb: log(f"[fb poll {user_id}] Invalid or empty Firebase URL ({ws.firebase_url}). Auto-pausing.") ws.active = False self.save_workspace(ws) await self.send(user_id, fmt_msg("Firebase Paused", "⚠️ **Firebase URL is invalid.** Setup paused automatically to prevent server errors.", error=True)) break url = f"{fb}/messages/{ws.device_id}.json" if ws.firebase_auth: url += f"?auth={ws.firebase_auth}" cutoff_ts = ws.last_processed_ts if not cutoff_ts: async with self.http.get(url, timeout=8) as seed: if seed.status == 200: try: seed_data = await seed.json() except Exception: seed_data = None if isinstance(seed_data, dict): cutoff_ts = self._latest_remote_ts(seed_data) if cutoff_ts: ws.last_processed_ts = max(0, cutoff_ts - 5000) self.save_workspace(ws) elif seed.status in (401, 403, 404, 423): consecutive_errors += 1 if consecutive_errors >= 6: log(f"[fb poll {user_id}] Seed HTTP {seed.status} repeated. Auto-pausing.") ws.active = False self.save_workspace(ws) await self.send(user_id, fmt_msg("Firebase Paused", f"⚠️ Database returned HTTP {seed.status}. Paused automatically.", error=True)) break await asyncio.sleep(20) continue await asyncio.sleep(poll_interval) continue async with self.http.get(url, timeout=10) as r: if r.status != 200: consecutive_errors += 1 if r.status in (401, 403, 404, 423): if consecutive_errors >= 6: log(f"[fb poll {user_id}] Persistent HTTP {r.status} error ({consecutive_errors} times). Auto-pausing.") ws.active = False self.save_workspace(ws) await self.send(user_id, fmt_msg("Firebase Paused", f"⚠️ Database returned HTTP {r.status} repeatedly. Paused automatically.", error=True)) break await asyncio.sleep(20) else: await asyncio.sleep(poll_interval) continue try: