Back

Hi. Cloud error. Flutter. Unhandled Exception: WebSocketException:

  • 0
  • Flutter
  • Cloud
alex2341355
11 Mar, 2024, 05:35

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: WebSocketException: Connection to 'https://cloud.appwrite.io:0/v1/realtime?project=bongotakso&amp;channels%5B%5D=databases.bongoDb.collections.drivers.documents&amp;channels%5B%5D=databases.bongoDb.collections.work_session.documents&amp;channels%5B%5D=databases.bongoDb.collections.orders.documents#' was not upgraded to websocket #0 _WebSocketImpl.connect (dart:_http/websocket_impl.dart:1011:41) #1 WebSocket.connect (dart:_http/websocket.dart:320:22) #2 RealtimeIO._getWebSocket (package:appwrite/src/realtime_io.dart:37:27) <asynchronous suspension> #3 RealtimeMixin._createSocket (package:appwrite/src/realtime_mixin.dart:33:17) <asynchronous suspension>

TL;DR
Developers encountering an unhandled exception in Flutter with a WebSocket error when trying to connect to a cloud service. The connection is not being upgraded to WebSocket. The issue seems to be with the URL configuration for the WebSocket connection. Solution: Check and correct the URL configuration for the WebSocket connection to `https://cloud.appwrite.io:0/v1/realtime?project=bongotakso&channels%5B%5D=databases.bongoDb.collections.drivers.documents&channels%5B%5D=databases.bongoDb.collections.work_session.documents&channels%5B%5D=databases.bongoDb.collections.orders
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