Skip to content

Sometimes script throws error on lazyconnect #20

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

Closed
thamaraiselvam opened this issue Oct 3, 2019 · 4 comments
Closed

Sometimes script throws error on lazyconnect #20

thamaraiselvam opened this issue Oct 3, 2019 · 4 comments

Comments

@thamaraiselvam
Copy link

the following error is been thrown

600:666: execution error: System Events got an error: Can’t get button "Authentication Settings…" of group 1 of window 1 of process "System Preferences". (-1728)

May be should add a delay?

@thamaraiselvam thamaraiselvam changed the title Sometimes shows Error on lazyconnect Sometimes script throws error on lazyconnect Oct 3, 2019
@thamaraiselvam
Copy link
Author

It occurs when trying to connect VPN is already connected because

osx_vpn_name="${vpn_name/Connect /}, Not Connected"

gets only Not Connected VPNs

@thamaraiselvam
Copy link
Author

So let's suppress error by checking Authentication Settings exist? or remove Not Connected from osx_vpn_name="${vpn_name/Connect /}, Not Connected"?

@thamaraiselvam
Copy link
Author

Sometimes it happens for not connected VPNs as well.

@jpninanjohn
Copy link
Contributor

jpninanjohn commented Oct 5, 2019

Closing as its a duplicate

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