Unity-Technologies / com.unity.netcode.gameobjects

Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.
MIT License
2.09k stars 430 forks source link

[Netcode] A ConnectionApprovedMessage was received from a client on the server side. #2781

Open SirPercivalsCode opened 7 months ago

SirPercivalsCode commented 7 months ago

Description

Bug hinders client from joining the server. Error: [Netcode] A ConnectionApprovedMessage was received from a client on the server side. 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: 90. Message Content: 02 01 7d 9a e2 a5 01 b2 36 17 b3 01 46 c4 ca 04 01 39 3b e8 2c 01 ab c9 50 60 01 53 a3 38 44 01 d3 f6 1c b8 01 a6 22 89 97 01 b5 fe 01 74 01 be 97 be 73 01 9d 9a 5c 01 01 e9 51 97 17 01 8a f7 e7 83 01 42 7f 88 c6 01 97 a3 f5 46 01 00 00 00 00 01 01 eb d4 7b c5 41 a7 2a

Reproduce Steps

  1. Start Host on one client
  2. Start client on another
  3. See error

Actual Outcome

Client joins (i think) but doesn't spawn player prefab etc.

Expected Outcome

Client joining the server and spawning player prefab.

Screenshots

[on host] Bild_2023-11-29_160702994

[on client] Bild_2023-11-29_160525674

Environment

zaclovagi commented 7 months ago

Same issue.

Message Size: 90. Message Content: 02 01 7d 9a e2 a5 01 b2 36 17 b3 01 46 c4 ca 04 01 39 3b e8 2c 01 ab c9 50 60 01 53 a3 38 44 01 d3 f6 1c b8 01 a6 22 89 97 01 b5 fe 01 74 01 be 97 be 73 01 9d 9a 5c 01 01 e9 51 97 17 01 8a f7 e7 83 01 42 7f 88 c6 01 97 a3 f5 46 01 00 00 00 00 01 ee c2 2f 38 5e 00 a6 41

zaclovagi commented 7 months ago

To whoever it may concern, This appears to happen for me only when the domain hasn't been reloaded and I've reentered play mode.