[Self-hosted] Realtime crashes with "Missing channels" + fatal Swoole\Server::exist() TypeError when
- 0
- Self Hosted
- Web
I'm unable to use the realtime connection on the latest appwrite client (npm)
When connecting to realtime it's getting stuck in a loop
browser prints: Realtime disconnected. Re-connecting in 1 seconds.
Server prints:
Connection open (user: 707)
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Missing channels
[Error] File: /usr/src/code/app/realtime.php
[Error] Line: 705
Connection close: 707
Fatal error: Uncaught TypeError: Swoole\Server::exist(): Argument #1 ($fd) must be of type int, array given
in /usr/src/code/vendor/utopia-php/websocket/src/WebSocket/Adapter/Swoole.php:54
import { Account, Channel, Client, Realtime, TablesDB } from "appwrite";
const client = new Client()
.setEndpoint(APPWRITE_ENDPOINT)
.setProject(APPWRITE_PROJECT_ID);
const realtime = new Realtime(client);
realtime.onOpen(() => {
console.log("Realtime connection opened"); // fires, then immediately drops
});
realtime.subscribe(
Channel.tablesdb(DATABASE_ID).table(COLLECTION_ID),
(event) => {
console.log("Realtime event:", event);
},
); ```
When downgrading the SDK to appwrite@24.2.0 it's able to connect to realtime without any issues.
Recommended threads
- [v1.8.1] Getting error "(role: applicati...
... but that scope doesn't exist. I am trying to get a function to run and modify tables in the database dynamically. I set everything up and eventually got: ...
- TOO_MANY_REDIRECTS after temporarily ena...
I am losing my mind over this, I enabled this setting because I was having issues with sites not making links with https. I enabled it, ran into issues, so I di...
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...