sdk-for-flutter icon indicating copy to clipboard operation
sdk-for-flutter copied to clipboard

🐛 Bug Report: Realtime Issue with `WebSocketException: .... was not upgraded to websocket' in FLUTTER

Open moshOntong-IT opened this issue 1 year ago • 2 comments

👟 Reproduction steps

I release my app in 'release mode' for QA test. These are the reproduce step with our QA tester:

  1. She goes to the thread page (This page has Appwrite Realtime integrate)
  2. She tries to send a thread. (When the thread has been sent then the realtime in appwrite must be triggered then her device must be receive the new event)

But she wonder why she did not receive any realtime event. So I try to go our Sentry log. Then I shocked that the Websocket issue is also occur in 'release mode'. I thought that this error was only occur on debug mode because it might be the hot reload or hot restart in flutter is the root cause.

image

👍 Expected behavior

It should not receive the WEBSOCKET issue

👎 Actual Behavior

It actually occurred to me that.

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Something else

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

moshOntong-IT avatar Jun 27 '24 11:06 moshOntong-IT

Sorry for mention you here @stnguyen90 . Why not putting the try in above of line 36? image

moshOntong-IT avatar Jun 28 '24 12:06 moshOntong-IT

@moshOntong-IT

It should not receive the WEBSOCKET issue

Can you clarify what the expected behavior is if the websocket isn't successfully connected?

Sorry for mention you here @stnguyen90 . Why not putting the try in above of line 36? image

How does this change things?

stnguyen90 avatar Jul 30 '24 22:07 stnguyen90