question

playfab-14 avatar image
playfab-14 asked

Mirror.ReadyMessage that required authentication, but the user has not authenticated yet,Error using 2 "Servers per machine" intstead of 1

Hi,

using 1 Server per machinge i get:

{"log":"NetworkServer.RegisterHandler replacing handler for Mirror.ReadyMessage, id=40252. If replacement is intentional, use ReplaceHandler instead to avoid this warning.", "stream":"stdout", "time":"2022-12-01T17:20:12.3438021Z"} {"log":"NetworkServer.RegisterHandler replacing handler for Mirror.CommandMessage, id=46228. If replacement is intentional, use ReplaceHandler instead to avoid this warning.", "stream":"stdout", "time":"2022-12-01T17:20:12.3438395Z"} {"log":"NetworkServer.RegisterHandler replacing handler for Mirror.NetworkPingMessage, id=33151. If replacement is intentional, use ReplaceHandler instead to avoid this warning.", "stream":"stdout", "time":"2022-12-01T17:20:12.3438460Z"}

usng 2 server per machine i get:

{"log":"Closing connection: connection(1295342152). Received message Mirror.ReadyMessage that required authentication, but the user has not authenticated yet", "stream":"stdout", "time":"2022-12-01T17:13:29.1224534Z"} {"log":"Unknown message id: 13085 for connection: connection(1295342152). This can happen if no handler was registered for this message.", "stream":"stdout", "time":"2022-12-01T17:13:29.1251960Z"} {"log":"NetworkServer: failed to unpack and invoke message. Disconnecting 1295342152.", "stream":"stdout", "time":"2022-12-01T17:13:29.1252417Z"}

Any clue/adivse for me?

,

If i run my application with 1 "Server per machine" everything works fine and I get:

{"log":"NetworkServer.RegisterHandler replacing handler for Mirror.ReadyMessage, id=40252. If replacement is intentional, use ReplaceHandler instead to avoid this warning.", "stream":"stdout", "time":"2022-12-01T17:20:12.3438021Z"} {"log":"NetworkServer.RegisterHandler replacing handler for Mirror.CommandMessage, id=46228. If replacement is intentional, use ReplaceHandler instead to avoid this warning.", "stream":"stdout", "time":"2022-12-01T17:20:12.3438395Z"} {"log":"NetworkServer.RegisterHandler replacing handler for Mirror.NetworkPingMessage, id=33151. If replacement is intentional, use ReplaceHandler instead to avoid this warning.", "stream":"stdout", "time":"2022-12-01T17:20:12.3438460Z"}

If i use 2 "Server per machine" the connection closes and I get:

{"log":"Closing connection: connection(1295342152). Received message Mirror.ReadyMessage that required authentication, but the user has not authenticated yet", "stream":"stdout", "time":"2022-12-01T17:13:29.1224534Z"} {"log":"Unknown message id: 13085 for connection: connection(1295342152). This can happen if no handler was registered for this message.", "stream":"stdout", "time":"2022-12-01T17:13:29.1251960Z"} {"log":"NetworkServer: failed to unpack and invoke message. Disconnecting 1295342152.", "stream":"stdout", "time":"2022-12-01T17:13:29.1252417Z"}

Any advise?

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

playfab-14 avatar image playfab-14 commented ·

BTW: I am using the Unity/Mirror/PlayFab example :)

0 Likes 0 ·

1 Answer

·
playfab-14 avatar image
playfab-14 answered

https://community.playfab.com/questions/60882/bug-in-localmultiplayeragent.html

use:

public void StartListen() { if( configuration.IsFlagSet( ServerConfiguration.BuildFlags.PLAYFAB ) ) { this.GetComponent<KcpTransport>().Port = (ushort)Port; //NetworkServer.Listen(maxConnections); // https://community.playfab.com/questions/60882/bug-in-localmultiplayeragent.html NetworkServer.maxConnections = maxConnections; StartServer(); } }

would be fine to have a working example for easy to use playfab ;)

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Xiao Zha avatar image Xiao Zha commented ·

It seems you have solved the issue. Please feel free to post a new thread if you have any other questions.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.