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

An unknown error occurred while connecting to a different server! Retrying with a different server... #41

Open
julianlaibach opened this issue Jun 9, 2022 · 9 comments

Comments

@julianlaibach
Copy link

Hey there,
thank you for this awesome Package!
I recently have some issues using it in a Python Script, the first few switches seem to work pretty well. After about 10 - 12 reconnections to a new Server the Script stops working, it seems like it is not longer able to connect to the Network / Does not have an Internet Connection. I work with a sleep everywhere i try to reconnect. Is there anything else i can do to prevent the Script from being stopped?

time.sleep(random.randint(5, 10))
rotate_VPN(settings)
time.sleep(random.randint(5, 10))

Thanks!

@kboghe
Copy link
Owner

kboghe commented Jun 25, 2022

Could you copy/paste the contents of your settings file? Thanks!

@julianlaibach
Copy link
Author

Those are my Settings:

area_input=['random countries europe 10'], skip_settings=1

@julianlaibach
Copy link
Author

It repeats this:

Found a server! You're now on Sweden #495
ip-address hasn't changed. Retrying...


Connecting you to Netherlands ...


An unknown error occurred while connecting to a different server! Retrying with a different server...

about 10 times with different countries and after that im getting this Error:

File "/usr/local/lib/python3.8/dist-packages/nordvpn_switcher/nordvpn_switch.py", line 542, in rotate_VPN raise Exception("Unable to connect to a new server. Please check your internet connection.\n")
Exception: Unable to connect to a new server. Please check your internet connection.

It also seems like the Internet is no longer connecting, it starts working again after stopping NordVPN.

@PetrovStark
Copy link

Same problem here guys. :(

Pritting the exception in the nordvpn_switch.py file in line 489, gives me this:

Command '['nordvpn', 'c', 'us8702']' returned non-zero exit status 1

@kboghe As the package's creator, what do you think this exception could mean?

@Barlog951
Copy link

Same problem here guys. :(

Pritting the exception in the nordvpn_switch.py file in line 489, gives me this:

Command '['nordvpn', 'c', 'us8702']' returned non-zero exit status 1

@kboghe As the package's creator, what do you think this exception could mean?

I have the same problem :/

@kleczekr
Copy link

Upvoting the issue, I'm facing the same problem

@adibub85
Copy link

same here

1 similar comment
@madtatu-development
Copy link

same here

@karl-an
Copy link

karl-an commented Feb 24, 2024

+1

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

9 participants