eduvpn / apple

app for iOS and macOS
Other
61 stars 18 forks source link

Mac client keeps contacting the server when new authorization is being issued #502

Open maxadamo opened 1 year ago

maxadamo commented 1 year ago

I have been using the Linux client for more than 3 years, and I have never seen an issue. Since I use the client for Mac, I am experiencing a problem when the token has to be renewed, and the client keeps trying to contact the server as follows: image

Unfortunately, the logs do not seem to be very chatty, but you can see that there is 40 seconds timeout until I terminate the application, otherwise, it hangs in an endless operation:

App:
2023-01-20 12:11:49.809 Beginning connection flow for server 'https://prod-eduvpn01.geant.org/'
2023-01-20 12:11:49.810 App version: 3.0.5 (1784)
2023-01-20 12:11:49.810 Getting server info for server 'https://prod-eduvpn01.geant.org/'
2023-01-20 12:12:31.990 Error: Request explicitly cancelled.
["NSLocalizedDescription": "Request explicitly cancelled.", "NSUnderlyingError": Alamofire.AFError.explicitlyCancelled]
2023-01-20 12:12:31.990 Flushing app log to disk ...
roop commented 1 year ago

@maxadamo: The "Getting server info" step doesn't need any authorization tokens. The next step (getting the available profiles) needs authorization, but the log indicates the next step didn't start. (The "Request explicitly cancelled" is when you toggled the switch off, I presume.)

If the app is stuck at "getting server info" for 40 secs, it might mean there was a problem with the network. Do you think that might have been possible?

Are you able to connect now, or are you still facing this problem?

roop commented 1 year ago

Please reopen if you're still facing this problem.

maxadamo commented 1 year ago

@roop I'm not re-opening for now (I also know that you have a new Go client in the works, and I can live with this glitches) but I don't think that I had a problem with the network. I hear also from other colleagues that from time to time they have to have this problem. with Mac. If I reset the app it starts working.

maxadamo commented 1 year ago

@roop do you mind re-opening the ticket? I'm not allowed.
This issue is impacting several people in the organization, and it's not an issue with our eduVPN servers (I installed those servers myself) because it works properly my mobile, or from Linux. I also don't have a connectivity issue.

Jackie-wx commented 1 year ago

I also experienced such a problem, and sometimes, it connected to the server successfully but cannot open any website. However, the network was accessible again after I closed the connection to EduVPN.