UserId not set
Options
sl1v1k
✭
Hi. I've got this error when try to run Photon Unity examples on Photon server:
When I use Photon cloud everything is fine. I'm new to the network stuff. Want to learn this by the examples. Please help!
Operation failed: OperationResponse 226: ReturnCode: -2 (Join failed: UserId is not set, checkUserIdOnJoin=true expects a UserId.)
When I use Photon cloud everything is fine. I'm new to the network stuff. Want to learn this by the examples. Please help!
0
Comments
-
Hi @sl1v1k,
Thank you for choosing Photon!
Yes, this is a known issue since Photon Server's version is way behind the one on the cloud.
To fix this, send a UserId from the client by setting it before connecting or implement custom authentication with a service that returns a UserId.0 -
I am having the same issue and cannot find where or how to "SET" the userID. What is the syntax to do this and where should it be done? In any Photon.Monobehaviour?0
-
0