Closed GeckoEidechse closed 1 year ago
The error clients get is the Invalid/Expired Masterserver Token
More details on the errors that we get
[error] Northstar origin authentication failed [error] {"success":false,"error":{"enum":"STRYDER_RESPONSE","msg":"Couldn't parse stryder response"}} [error] Failed reading masterserver response: got fastify error response [error] {"success":false,"error":{"enum":"INVALID_MASTERSERVER_TOKEN","msg":"Invalid or expired masterserver token"}}
The error seems to be happening in one of two places: https://github.com/R2Northstar/NorthstarMasterServer/blob/main/client/clientauth.js#L64 or https://github.com/R2Northstar/NorthstarMasterServer/blob/main/client/clientauth.js#L74
So we are either failing to parse the JSON that we get back from stryder (unlikely imo) or we are getting an error back from stryder. Potentially a ratelimit of some kind?
Just don't confirm ownership with stryder :trollface:
Could be. i stand on stryder rate limit too. It's most likely to happen when I just push a update to northstarCN, and around 100Players are trying to get auth from masterserver during a short period of time.
This would go inside with it happening less often currently where our playerbase is on the smaller end.
(sidenote, it's shrinking roughly at the same rate as vanilla Steam playerbase post recent summer sale so not really a reason to worry)
Since my PR has been merged, the error I am getting has changed from
[error] Northstar origin authentication failed [error] {"success":false,"error":{"enum":"STRYDER_RESPONSE","msg":"Couldn't parse stryder response"}}
to
[error] Failed reading origin auth info response: malformed response object {"statusCode":500,"error":"Internal Server Error","message":"Cannot read properties of undefined (reading 'toString')"}
The only uses of toString that were added mean that the error is one of the two options:
I'm going to make a PR to add some more checks, so that I can further narrow down this issue
If it's any help, I also got a 500
by passing in a +
through the Origin token, while trying to see if I could inject other parameters to trick Stryder into validating my token & UID while passing a different UID to the master server.
No issues for the last month after switching to Atlas.
For some reason in recent time master server started requiring manual restarts every 2-3 days due to starting to through auth errors on clients. Issue is currently not known and needs investigating.