kboghe / NordVPN-switcher

Rotate between different NordVPN servers with ease. Works both on Linux and Windows without any required changes to your code!
https://pypi.org/project/nordvpn-switcher/
189 stars 51 forks source link

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

Open julianlaibach opened 2 years ago

julianlaibach commented 2 years ago

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 commented 2 years ago

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

julianlaibach commented 2 years ago

Those are my Settings:

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

julianlaibach commented 2 years ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Upvoting the issue, I'm facing the same problem

adibub85 commented 1 year ago

same here

madtatu-development commented 1 year ago

same here

karl-an commented 4 months ago

+1