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

After few hours / leaving sleep mode, app stops working #160

Open
EdoVro opened this issue Sep 4, 2024 · 2 comments
Open

After few hours / leaving sleep mode, app stops working #160

EdoVro opened this issue Sep 4, 2024 · 2 comments

Comments

@EdoVro
Copy link

EdoVro commented Sep 4, 2024

So this app works great, has everything I need, but there's one big issue. I leave it minimized in the system tray, but I've noticed after a bit, or if I were to exit sleep mode, it stops working. When I try and reopen through the system tray, and then interact, it crashes. But then if I reopen, it's perfectly fine for a bit until it repeats.

Here's the log file, it's not the whole thing, but that's because I noticed it was repeating the same error, I assume for every time this has happened. Hoping there's a fix to this issue, cuz if I have to reopen the app constantly, then I don't see the point of using it to begin with.

1724435225.067474: 'result'
1724435225.067474: Login from file
1724435225.067474: Login from imink
1724435225.067474: HTTPSConnectionPool(host='api-lp1.znc.srv.nintendo.net', port=443): Max retries exceeded with url: /v3/Friend/List (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x0000022BB264B890>: Failed to resolve 'api-lp1.znc.srv.nintendo.net' ([Errno 11001] getaddrinfo failed)"))
1724435225.067474: Cannot get session token properly
1724435225.067474: Failure with authorization: 'result'\Friends returns {"status": 9404, "errorMessage": "Token expired.", "correlationId": "a1fc42a0-91631e4a"}

@HotaruBlaze
Copy link
Contributor

That error is it because it was unable to connect to the servers due to your device not having internet connection to renew your token, and its erroring out because the token is then invalid when it tried to use it.

I'm not that sure what we could do to work around that for you. as the only solution I can think of is suppressing the error and forcing it to try over and over.

@EdoVro
Copy link
Author

EdoVro commented Sep 4, 2024

Well first of all, have it not crash when it loses connection. Because that could definitely happen not just from entering sleep mode. I feel it should automatically refresh when trying to open from the system tray. Maybe even add a Refresh option when right clicking. Adding auto-refresh when in the background every 30 minutes could be an option too, but I feel that'd interfere with displaying play time.

These aren't full on solutions to my problem, but it's way better than current.

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

No branches or pull requests

2 participants