WebGL Client Session Callback Error
Description
[Netcode] A ConnectionApproveMessage was received from the server when the connection has already been established. NetworkTransport: Unity.Netcode.Transports.UDP.UnityTransport UnityTransportProtocol: Unity Transport. This should not happen. Please report this to the Netcode for GameObjects team at https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues and include the following data: Message Size: 189 Message Content: 02 02 7d 9a e2 a5 21 b2 36 17 b3 11 46 c4 ca 04 01 2a b2 f1 50 01 e9 3a b6 d2 01 39 3b e8 2c 01 ab c9 50 60 01 53 a3 38 44 11 d3 f6 1c b8 01 7f 10 0d af 01 f3 a2 4a 4a 01 a6 22 89 97 01 e9 4e 31 0d 01 b5 fe 01 74 11 be 97 be 73 01 bd 23 d8 d0 01 58 aa fb 1c 01 9d 9a 5c 01 01 e9 51 97 17 01 8a f7 e7 83 01 ee 80 1f c6 01 42 7f 88 c6 01 97 a3 f5 46 01 c2 40 2e a3 01 4e 67 03 d2 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 11 12 11 02 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
Reproduce Steps
-
Go to '...'
-
Click on '....'
-
Scroll down to '....'
-
See error
-
Using the Netcode for Game Objects 2.3.2
Actual Outcome
This was an unexpected error that I was told to report.
Expected Outcome
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
- OS: WebGL
- Unity Version: 6.0000000.3
- Netcode Version: 2.3.2
- Netcode Commit: [e.g. https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/commit/ba418fa5b600ad9eb61fab0575f12fbecc2c6520]
Additional Context
Add any other context about the problem here. Logs, code snippets would be useful here but please also consider attaching a minimal Unity project that reproduces the issue.
@Sammoh Could you update to v2.4.2 and see if this issue persists? There were some recent fixes that could have been the root cause for this message.
Updated to v2.4.2. Also updated to Multiplayer Services 1.1.4.
Recreate steps:
- Using the 'Widgets Quick Start Sample' from the Multiplayer -> Multiplayer Center -> Connecting Players -> Multiplayer Widgets sample and 'Multiplayer Play Mode' to start a second player window for editor.
- Locate 'Join Session By Code' Game object with associated Join Session Component.
- Create a Debug Script to hook into Joining Session, Joined Session, Failed to Join Session events.
- Create an overlayed text UI block to view debug logs.
- Use 'Application.logMessageReceived += HandleLog;' to log debug code to text block. (NOTE: Widgets scene may not be the same resolution as Itch.io resolution settings, keep this in mind before building as it's annoying that automatic aspect scaling was not accounted for in UI)
- Build for Web with 'Multiplayer Role' to be 'Client and Server' and compress new project folder to *.zip.
- Follow directions for building Itch.io browser game.
- Start the browser game, editor, and second editor instances.
- Start Host in Editor 1, and copy Join Code.
- Paste code in browser and Editor 2 then Join the session.
Observe:
- Editor 1 and 2 have 3 items in the Player List UI. Browser does not contain anything in the Player List.
- Browser Join Button does not reenable, suggesting it's not connected?
- Observe debug text block which should have debug logs.
- Debug logs show, connection established, signed in anonymously, OnSessionJoining event has been fired.
- OnSessionJoined and FailedToJoinSection events do not fire.
- Observe Editor 1 and 2 debug log block, OnSessionJoined event has been fired.
Thanks for the Multiplayer Services 1.1.5 update. Fixed the issue in WebGL.