metherul / Automaton

The open modpack platform.
Other
59 stars 14 forks source link

The login request times-out too quickly (logging in with a VPN) #53

Open bohjak opened 5 years ago

bohjak commented 5 years ago

Initially I was trying to login through Automaton to Nexus while having a VPN turned on. The request, however, was regularly timing out too quickly (~ 20 seconds after clicking the button), way before the Nexus authentication page even started loading (~ 20 seconds after the time-out). Not sure exactly how did the VPN influence anything since it doesn't add but milliseconds to loading times but I tried it close to 20 times with consistent results. Even when running Automaton as administrator (a bit of hopelessness there). Upon turning it off the request came through fine and quickly.

Don't know how much is this influenced directly by Automaton, setting a longer wait period for the request would, at least, put a band-aid on it, I think.

metherul commented 5 years ago

Certainly an odd issue. I've been using Automaton for a good long while with my VPN app of choice. I'll get back to you when I investigate this further.

bohjak commented 5 years ago

@metherul I have an update for you. It seems to depend on the country through which I connect (yesterday it was Ireland). Today I tried a different server in Ireland and still the problem persisted. Then I tried to connect through a different country (Belgium) and it works just fine. So not really sure what is going on there. I also opened a query with Nexus support so I will post here any findings they come up with.

metherul commented 5 years ago

Thanks for the heads up. I'm guessing its a timeout issue on Automaton's end that could be caused by the Nexus SSO server. Not sure though, it's an odd issue.

ernierasta commented 5 years ago

@metherul are you sending ping every 30 seconds via websocket? It is required to keep connection alive.

metherul commented 5 years ago

Aye, that's currently the likely suspect. I'll be working the fix in on the next release. Thanks!

ernierasta commented 5 years ago

Glad I can help, just writing something similar to Automaton, so in the topic. ;-)