Search Issue Tracker

Fixed in 2018.2.X

Fixed in 2017.2.X

Votes

6

Found in

5.6.1f1

Issue ID

919797

Regression

No

[.NET 4.6] ' WebSocket: ws_0 - IOException during handshake' errors appear with Firebase plugin and .NET 4.6

Mono

-

Steps to reproduce:
1) Open the latest attached project (Firebase_NET.zip).
2) Open 'GameScene'.
3) Enter play mode.

Errors start appearing in the console:
1/2/0001 5:35:34 PM [Error] WebSocket: ws_0 - IOException during handshake
System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: The authentication or decryption has failed. ---> ...

The errors keep on appearing even after exiting play mode every couple of seconds. This does not happen with .NET 3.5.

Reproduced on:
2017.2.0a3, 2017.1.0b1

Comments (4)

  1. paulomuggler

    Sep 13, 2018 19:02

    Managed to workaround this issue by disabling the FirebaseDatabase.dll under ../Firebase/Plugins/Mono/ for the editor platform, and enabling the one FirebaseDatabase.dll directly under ../Firebase/Plugins/ instead.

    Unity 2018.2.5f1
    Firebase Plugin 5.2.1
    .NET 4.x version, 4.x API, IL2CPP Backend.

    So far, so good.

  2. as87dgs6asg0a

    Jun 08, 2018 00:45

    This might be flagged as solved, but as of today it's not: https://github.com/firebase/quickstart-unity/issues/106

  3. IVPathfinder

    Nov 23, 2017 22:32

    I'm getting this problem as well, something to do with mono and certs.
    Reproduced on unity 5.6.3p1

    error loading updated certs from https://www.gstatic.com/firebase/ssl/roots.pem with code -2

    11-24 11:31:25.058 24752 24992 E Unity :

    11-24 11:31:25.058 24752 24992 E Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    11-24 11:31:25.058 24752 24992 E Unity :

    11-24 11:31:25.854 24752 25009 E Unity : 11/23/2017 22:31:25 [Error] WebSocket: ws_1 - IOException during handshake

    11-24 11:31:25.854 24752 25009 E Unity : System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: The server stopped the handshake.

    11-24 11:31:25.854 24752 25009 E Unity : at Mono.Security.Protocol.Tls.SslClientStream.SafeReceiveRecord (System.IO.Stream s) [0x00000] in <filename unknown>:0

    11-24 11:31:25.854 24752 25009 E Unity : at Mono.Security.Protocol.Tls.SslClientStream.OnNegotiateHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0

    11-24 11:31:25.854 24752 25009 E Unity : at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0

    11-24 11:31:25.854 24752 25009 E Unity : --- End of inner exception stack trace ---

    11-24 11:31:25.854 24752 25009 E Unity : at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0

    11-24 11:31:25.854 24752 25009 E Unity :

  4. assafco

    Oct 31, 2017 19:03

    The problem appeared after upgrading to Unity 2017.2 and after using the new Firebase Unity SDK Version 4.2.1.
    Even downgrading couldn't solve the problem.
    The wird thing is that I have an old build if my game on my phone which using the old version of Firebase Unity SDK and connection to database is working without problems

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.