Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle "Invalid Value" master server response #9

Closed
GeckoEidechse opened this issue Aug 10, 2024 · 5 comments · Fixed by #47
Closed

Handle "Invalid Value" master server response #9

GeckoEidechse opened this issue Aug 10, 2024 · 5 comments · Fixed by #47
Labels
help wanted Extra attention is needed

Comments

@GeckoEidechse
Copy link
Member

GeckoEidechse commented Aug 10, 2024

Basically when a player tries to host a server but something is not set up correctly, master server will return a 5XX HTTP error with an error JSON response.

However Cloudflare somehow intercepts that and adds its own information to it, resulting in client failing to parse the response and showing "Invalid Value".

Until this is addressed Reaper should handle the case when a user asks and point out that the most common reason is non-functioning port-forwarding (be it user error or technical limitations).

In logs this looks something like:

[19:41:37] [NORTHSTAR] [errr] Failed reading masterserver authentication response: encountered parse error "Invalid value."
[19:41:37] [NORTHSTAR] [errr] Reached max ms server registration attempts

It should be pointed out however, that the IIRC the master server registration attempt happens even if the player is not trying to host a server as the the multiplayer menu (the on in mp_lobby) is also technically a game server that tries to register itself.

As such we need to take care to only parse the log for it if the person that uploaded the log mentions that they are attempting to host a server.

@GeckoEidechse GeckoEidechse added the help wanted Extra attention is needed label Aug 10, 2024
@Bobbyperson
Copy link

Can you please give an example of what this looks like/what it should look for?

@GeckoEidechse
Copy link
Member Author

GeckoEidechse commented Aug 12, 2024

Updated the description now with the information from R2Northstar/Northstar#685 which is a bit more detailed ^^

IMO, the most difficult thing about this is that we also need to check whether based on their messages whether a player is actually attempting to host a server as each game client tries to register with master server when they join multiplayer lobby.

@GeckoEidechse
Copy link
Member Author

Hmm, maybe we don't need to check if the person mentioned wanting to host a server after all?

R2Northstar/NorthstarLauncher#543

@Bobbyperson
Copy link

Alrighty, I'll hold off for now until that maybe becomes a definitely

@GeckoEidechse
Copy link
Member Author

Eh, I think we can just try without the additional check, verify in prod whether it works and if it does not we just disable the cog again until we fix it ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants