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

Parse error for some "verification timed out" response #607

Open
GeckoEidechse opened this issue Nov 30, 2023 · 8 comments
Open

Parse error for some "verification timed out" response #607

GeckoEidechse opened this issue Nov 30, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@GeckoEidechse
Copy link
Member

When receiving

image

it produces

Failed reading masterserver authentication response: "Encountered parse error "Invalid value."

on launcher, i.e. it fails to parse the response correctly.

Related:

if (serverAddedJson.HasParseError())

@GeckoEidechse GeckoEidechse added the bug Something isn't working label Nov 30, 2023
@pg9182
Copy link
Member

pg9182 commented Nov 30, 2023

This may not be reproducible, as I haven't seen it before the case today. Either way, something is odd in the launcher code.

@GeckoEidechse
Copy link
Member Author

Seems I was able to reproduce it by just running a v1.20.2-rc1 docker image without port forwarding.

@GeckoEidechse
Copy link
Member Author

Can also reproduce on Windows by just running a dedi without port forwarding.

@GeckoEidechse
Copy link
Member Author

GeckoEidechse commented Jan 4, 2024

Printing the buffer returned from the master server by doing something like

...
if (result == CURLcode::CURLE_OK)
{
	rapidjson_document serverAddedJson;
	spdlog::error("############################################");
	spdlog::error("{}", readBuffer.c_str());
	spdlog::error("############################################");
	serverAddedJson.Parse(readBuffer.c_str());
...

I get

...
[2024-01-04] [22:25:08] [NORTHSTAR] [info] Attempting to register the local server to the master server.
[2024-01-04] [22:25:18] [NORTHSTAR] [error] ############################################
[2024-01-04] [22:25:20] [NORTHSTAR] [error] error code: 502
[2024-01-04] [22:25:20] [NORTHSTAR] [error] ############################################
[2024-01-04] [22:25:20] [NORTHSTAR] [error] Failed reading masterserver authentication response: encountered parse error "Invalid value."
[2024-01-04] [22:25:20] [NORTHSTAR] [error] Reached max ms server registration attempts.

implying the master server does not return valid JSON?

@ASpoonPlaysGames
Copy link
Contributor

cc @pg9182 i guess?

@pg9182
Copy link
Member

pg9182 commented Jan 5, 2024

Uh, you're saying it returned error code: 502 literally? Because nothing in atlas would do that... It's almost as if something is putting the http status into there.

@GeckoEidechse
Copy link
Member Author

Uh, you're saying it returned error code: 502 literally?

At least that's what in that buffer here. Not sure what the easiest way is to dump the full response. Curl logging?

@GeckoEidechse
Copy link
Member Author

Related: R2Northstar/Northstar#685

Basically Cloudflare ingesting its own response here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

3 participants