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

Add 599 error code #53

Closed
wants to merge 1 commit into from
Closed

Conversation

nightpool
Copy link

Thanks for the updates! I've been trying the latest builds from gitlab and they've really cut down on the number of random errors. However, I do still see a "599" error occasionally. It may be thrown either by the nintendo GraphQL api or from the underlying HTTP library. Here's the backtrace I see:

image

Doesn't look like there are any additional details. I've added the 599 error to the temporary_http_errors array, but let me know what you think.

Seems to be returned by the GraphQL API under certain (unclear) conditions.
@nightpool
Copy link
Author

I also created a gitlab.fancy.org.uk account to try and contribute this patch, but it looks like i need fork access: https://gitlab.fancy.org.uk/nightpool

@samuelthomas2774
Copy link
Owner

samuelthomas2774 commented Jan 28, 2023

The SplatNet 3 API appears to return 599 status codes when there's issues with NPLN (although it could also be returning this status code for other reasons as well). Looking at presence server logs this is rare (7 total 599 responses in the last month):

Screenshot 2023-01-28 at 17 01 29

SplatNet 3 itself does not retry automatically on any errors and for 400/401/500/599 doesn't even show an option to retry (only close the app), so I think nxapi should still ask for confirmation before retrying on this status code. As it's returned during major outages I guess it's expected that the user will quickly give up and try again later instead of continually retrying every 30s as nxapi does.

@nightpool
Copy link
Author

Ultimately, I don't really think the current alert messages are useful to the user at all, and they're very disruptive when Nxapi is running in the background and I'm not even playing Splatoon at all. This one popped up during a Stardew Valley game, for example.

So maybe the issue is less which status codes should be swallowed and which should be retried, and more that the desktop app needs a way to signal errors less disruptively and retry on its own.

@OctoFloofy
Copy link

How many errors are you getting per day?

@samuelthomas2774
Copy link
Owner

(#41)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants