Back

Self Hosted instance sometimes throws "AppwriteException: null, XMLHttpRequest error. (0)"

  • 0
  • Self Hosted
Bendix Behn
19 Oct, 2023, 12:26

Hey! I have a self hosted appwrite instance and a flutter web app. It all works well, but when I have more traffic the flutter client often throws an Exception: "AppwriteException: null, XMLHttpRequest error. (0)." It only happens if there are many active users (round about 300 realtime connections). Also the web socket connection failes some times then: "WebSocketChannelException: WebSocket connection failed." The cpu usage while that time is still fine. It never gets above 80%. Im using a server with 2 intel VCPUS and 8GB RAM.

TL;DR
The user is experiencing an "AppwriteException: null, XMLHttpRequest error. (0)" and WebSocket connection failures when there are many active users (around 300). The CPU usage does not exceed 80%. The user is using a server with 2 Intel VCPUs and 8GB RAM. Solution: It is suggested that the user may need a server with more cores to handle the increased traffic. They should consider upgrading their server to handle the high number of concurrent connections.
Tessa
19 Oct, 2023, 17:37

@wess can you take a look at this?

Drake
20 Oct, 2023, 01:40

You probably need a server with more cores to handle the increased traffic

Bendix Behn
20 Oct, 2023, 06:37

Ok, Ill try it out

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more