The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

I don't know this Error Please Help me

tkdqjadn
2021-09-17 10:45:35

I just using callback Method

i wait a little time and occured error
I don't use auth
Do I have to use auth?

What is error?
OperationResponse 230: ReturnCode: 32736 (No auth request during expected wait time). Parameters: {} Server: NameServer Address: ns.photonengine.io:5058
UnityEngine.Debug:LogError(Object)

Comments

Tobias
2021-09-17 12:09:56

All clients do authentication in the background. Even if you don't authenticate users, the client sends it's AppId and requests info about the region you are going to use.

When something odd happens, always let us know the PUN version and the Editor version.
We would like to reproduce this case, so if you could send us a repro case to: [email protected].

chvetsov
2021-09-17 12:13:14

hi, @tkdqjadn

this error happens because Nameserver expects auth request after some time. we will update NS next week, so that it will not be so strict.

Currently what you need to get rid of this error is accomplish task on NS within 20 second or send auth request

best,
ilya

tkdqjadn
2021-09-17 12:36:56

@chvetsov
I think it's enough time.
I was just curious about the reason for the error.

tkdqjadn
2021-09-17 12:50:00

@Tobias
Hi Thanks
I send email please check to your email

Tobias
2021-09-17 13:16:30

Thanks for the code. Checked it. Had to call ConnectUsingSettings to get things started but could repro the issue with that:

Your override OnRegionListReceived method calls regionHandler.PingMinimumOfRegions(PingCompleteCallback, null)

This assigns a callback for the ping-completed event, which is normally done by PUN. Unlike PUN's code, yours doesn't connect to a region, when the pings are in.
This stalls the process of getting connected to the best region and with a short timeout for connections on the Name Server, this will get you that error code.

So in short: You manually called PingMinimumOfRegions but don't use the result to connect to some region.

Could be enough to add something like this:

tkdqjadn
2021-09-17 14:47:12

@Tobias

Thanks It is working!!

but i have question.

Why should we use 'PhotonNetwork.NetworkingClient.ConnectToRegionMaster()' again if 'PhotonNetwork.ConnectUsingSettings()' already connects to MasterServer?

Shouldn't we use 'PhotonNetwork.ConnectUsingSettings()' to connect to MasterServer?

I wonder the difference between 'PhotonNetwork.ConnectUsingSettings()' and 'PhotonNetwork.ConnectUsingSettings()' .

Tobias
2021-09-17 15:12:33

Normally, you don't have to call ConnectToRegionMaster() yourself. PUN does that.

But: There is only a single callback possible for PingMinimumOfRegions() and your code did set that callback to your own code (which did not connect to a master). So PUN was stranded, kind of.

Back to top