There was an error connecting to the protonvpn api

Arch Linux You are not logged in. #1 2020-11-14 16:46:28 [SOLVED] Problem connecting to OPENVPN HelloThe problem is that unfortunately it gives this error!Of course, I can say that I can not even connect to the ProtonVPN site from the browser, and with the SetupVPN of the Chrome browser, I connected to the ProtonVPN […]

Содержание

  1. Arch Linux
  2. #1 2020-11-14 16:46:28
  3. [SOLVED] Problem connecting to OPENVPN
  4. #2 2020-11-14 17:55:43
  5. Re: [SOLVED] Problem connecting to OPENVPN
  6. #3 2020-11-14 18:08:13
  7. Re: [SOLVED] Problem connecting to OPENVPN
  8. [BUG] There was an error connecting to the ProtonVPN API. #128
  9. Comments
  10. [BUG] cant connect to protonvpn api #282
  11. Comments
  12. Inconsistent behavior of TLS certificate for Fedora 36 repository domain #88
  13. Comments
  14. Unable to connect
  15. Server downtimes
  16. Not connected to the internet while attempting to connect Proton VPN

Arch Linux

You are not logged in.

#1 2020-11-14 16:46:28

[SOLVED] Problem connecting to OPENVPN

Hello
The problem is that unfortunately it gives this error!
Of course, I can say that I can not even connect to the ProtonVPN site from the browser, and with the SetupVPN of the Chrome browser, I connected to the ProtonVPN site !! Isn’t this a problem ??
The problem is that unfortunately when Chrome browser VPN Setup is open, it gives this error, but when I close the browser VPN Setup, it does not give the last two lines and after a few minutes nothing happens.

Last edited by SPYAM (2020-11-14 19:55:54)

#2 2020-11-14 17:55:43

Re: [SOLVED] Problem connecting to OPENVPN

It’s possible that ProtonVPN is blocked in your region?
Are you aware if VPNs are illegal where you are?

IIRC some countries have declared them illegal and blocking access with firewalls.
If that’s not the case then idk, I don’t have any VPN yet.

On another perspective, have you configured a firewall?

Last edited by GaKu999 (2020-11-14 17:56:05)

Heisenberg might have been here.

#3 2020-11-14 18:08:13

Re: [SOLVED] Problem connecting to OPENVPN

It’s possible that ProtonVPN is blocked in your region?
Are you aware if VPNs are illegal where you are?

IIRC some countries have declared them illegal and blocking access with firewalls.
If that’s not the case then idk, I don’t have any VPN yet.

On another perspective, have you configured a firewall?

Источник

[BUG] There was an error connecting to the ProtonVPN API. #128

Describe the bug
After repeat successful init and connect there is a recurrent issue with connecting again.

The error message [!] «There was an error connecting to the ProtonVPN API.» [!] Please make sure your connection is working properly!

Led me to query the API manually, most likely igoring requirements to reliably connect but it shows here there may be an issue with the API connectivity (or i miss the requirements to be met)

wget https://api.protonvpn.ch/vpn/location
—2020-03-04 10:02:56— https://api.protonvpn.ch/vpn/location
Resolving api.protonvpn.ch (api.protonvpn.ch). 185.159.159.170
Connecting to api.protonvpn.ch (api.protonvpn.ch)|185.159.159.170|:443. connected.
GnuTLS: Error in the pull function.
Unable to establish SSL connecti

To Reproduce
Steps to reproduce the behavior:

Expected behavior

Error Messages/Program Output/Log Messages (

wget https://api.protonvpn.ch/vpn/location
—2020-03-04 10:02:56— https://api.protonvpn.ch/vpn/location
Resolving api.protonvpn.ch (api.protonvpn.ch). 185.159.159.170
Connecting to api.protonvpn.ch (api.protonvpn.ch)|185.159.159.170|:443. connected.
GnuTLS: Error in the pull function.
Unable to establish SSL connection

protonvpn c
[!] «There was an error connecting to the ProtonVPN API.»
[!] Please make sure your connection is working properly!

Desktop (please complete the following information):

Linux OS (Debian based)

Additional context

The text was updated successfully, but these errors were encountered:

Источник

[BUG] cant connect to protonvpn api #282

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:
1.run sudo protonvpn c -f
2.fails to connect

Expected behavior
A clear and concise description of what you expected to happen.

Error Messages/Program Output/Log Messages (

/.pvpn-cli/pvpn-cli.log)
[!] There was an error connecting to the ProtonVPN API.
[!] Please make sure your connection is working properly!
log:
2021-02-01 08:59:50,833 — protonvpn-cli — DEBUG — cli:84 — ###########################
2021-02-01 08:59:50,833 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ###
2021-02-01 08:59:50,834 — protonvpn-cli — DEBUG — cli:86 — ###########################
2021-02-01 08:59:50,834 — protonvpn-cli — DEBUG — cli:87 — [‘/usr/bin/protonvpn’, ‘c’, ‘-f’]
2021-02-01 08:59:50,834 — protonvpn-cli — DEBUG — cli:88 — USER: user
2021-02-01 08:59:50,835 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/user/.pvpn-cli
2021-02-01 08:59:50,847 — protonvpn-cli — DEBUG — cli:92 — Arguments
<‘—cc’: None, ‘—fastest’: True, ‘—help’: False, ‘—p2p’: False, ‘—random’: False, ‘—sc’: False, ‘—tor’: False, ‘—version’: False, ‘-p’: None, »: None, ‘c’: True, ‘configure’: False, ‘connect’: False, ‘d’: False, ‘disconnect’: False, ‘examples’: False, ‘init’: False, ‘r’: False, ‘reconnect’: False, ‘refresh’: False, ‘s’: False, ‘status’: False>
2021-02-01 08:59:50,899 — protonvpn-cli — DEBUG — fastest:145 — Starting fastest connect
2021-02-01 08:59:50,901 — protonvpn-cli — DEBUG — disconnect:307 — Initiating disconnect
2021-02-01 08:59:51,193 — protonvpn-cli — DEBUG — is_connected:197 — Checking connection Status. OpenVPN processes: 0
2021-02-01 08:59:51,194 — protonvpn-cli — DEBUG — manage_dns:608 — Restoring DNS
2021-02-01 08:59:51,194 — protonvpn-cli — DEBUG — manage_dns:625 — No Backupfile found
2021-02-01 08:59:51,195 — protonvpn-cli — DEBUG — manage_ipv6:688 — Restoring ip6tables
2021-02-01 08:59:51,195 — protonvpn-cli — DEBUG — manage_ipv6:703 — No Backupfile found
2021-02-01 08:59:51,195 — protonvpn-cli — DEBUG — manage_killswitch:778 — Restoring iptables
2021-02-01 08:59:51,195 — protonvpn-cli — DEBUG — manage_killswitch:787 — No Backupfile found
2021-02-01 08:59:51,195 — protonvpn-cli — DEBUG — disconnect:347 — No connection found
2021-02-01 08:59:51,198 — protonvpn-cli — DEBUG — call_api:36 — Initiating API Call: https://api.protonvpn.ch/vpn/logicals
2021-02-01 08:59:56,639 — protonvpn-cli — DEBUG — call_api:51 — Error connecting to ProtonVPN API

Desktop (please complete the following information):

  • OS: [solus 4.1]
  • Python Version: [3.7.9]
  • ProtonVPN-CLI Version: [v2.2.6]
    ]

Additional context
pinging api.protonvpn.ch shows i can access it

The text was updated successfully, but these errors were encountered:

Источник

Inconsistent behavior of TLS certificate for Fedora 36 repository domain #88

  • I have searched open and closed issues for duplicates
  • This isn’t a feature request
  • This is not a report about my app not working as expected

There is no consistent SSL/TLS certificate behavior when requesting the repository metadata file at https://repo.protonvpn.com/fedora-36-stable/repodata/repomd.xml.

After execute dnf upgrade —refresh the repository metadata update fails with the following output:

This is not a persistent issue. For example, if I connect to Japan (using other VPN service) the route resolves using a valid TLS certificate issued by Let’s Encrypt. On the other side, if I use a «raw» connection the route is resolved providing a TLS certificate issued by «Untangle», which is not recognized as a valid certificate.

What can I do to resolve this? Is this a DNS cache-related issue or a domain misconfiguration by your side?

  • OS: Fedora 36 Workstation KDE Spin
  • 9.9.9.9 and 1.1.1.1 as DNS servers for raw connections.
  • 103.86.96.100 and 103.86.99.100 as DNS servers for secured connections.
  • Installation provided by the RPM located at https://repo.protonvpn.com/fedora-36-stable/release-packages/protonvpn-stable-release-1.0.1-1.noarch.rpm (as described in https://protonvpn.com/support/official-linux-vpn-fedora/)

The text was updated successfully, but these errors were encountered:

Источник

Unable to connect

In cases Proton VPN can’t connect, please refer to the following list of solutions. Most of the steps described here can be done without direct support from our support team, but in case you get stuck or don’t know how to handle certain things, we will be there for you.

Server downtimes

If you have connection problems with a single server or country, it’s quite likely a temporary problem or downtime, e.g. for maintenance. We work to ensure maximum server uptime. However once in a while a server may still go down unexpectedly. If the problem persists on all servers, please also check your firewall/ antivirus settings.

System and compatibility issues

Installation

  • Make sure Proton VPN is properly installed and that you have granted permission to install the OpenVPN TAP adapter. For detailed instructions on how to install Proton VPN please visit this article.

System time

  • If your system time is not set correctly, you might be unable to log into Proton VPN. If your system time is, for example, set to April, 1st, 2005, an SSL certificate from 2007 will be rejected and the connection will fail.

Reinstall Proton VPN

  • Sometimes an operating system takes a wrong turn and slows down a program. please uninstall Proton VPN completely and re-install it. The following links have detailed instructions on how to uninstall and install Proton VPN.

Account Problems

Wrong credentials

  • Please make sure that you typed your credentials correctly before attempting to connect. Learn more about locating your Proton VPN password.

Expired account

  • If your subscription ran out, Proton VPN will not connect to the internet. Please make sure that you have a valid subscription or upgrade your account.

Not connected to the internet while attempting to connect Proton VPN

Please make sure that your internet connection is stable and uninterrupted. If you are using Wi-Fi, please try switching to a cable – Ethernet – connection instead.

Источник

#1 2020-11-14 16:46:28

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 127

[SOLVED] Problem connecting to OPENVPN

Hello
The problem is that unfortunately it gives this error!
Of course, I can say that I can not even connect to the ProtonVPN site from the browser, and with the SetupVPN of the Chrome browser, I connected to the ProtonVPN site !! Isn’t this a problem ??
The problem is that unfortunately when Chrome browser VPN Setup is open, it gives this error, but when I close the browser VPN Setup, it does not give the last two lines and after a few minutes nothing happens.

[root@spy babak]# protonvpn init
                         [ -- PROTONVPN-CLI INIT -- ]
                          
ProtonVPN uses two different sets of credentials, one for the website and
official apps where the username is most likely your e-mail, and one for
connecting to the VPN servers.

You can find the OpenVPN credentials at https://account.protonvpn.com/account.

--- Please make sure to use the OpenVPN credentials ---

Enter your ProtonVPN OpenVPN username: 6EmasS_eJRurrAzsqT7dnps0
Enter your ProtonVPN OpenVPN password: 
Confirm your ProtonVPN OpenVPN password: 

Please choose your ProtonVPN Plan
1) Free
2) Basic
3) Plus
4) Visionary

Your plan: 1

Choose the default OpenVPN protocol.
OpenVPN can act on two different protocols: UDP and TCP.
UDP is preferred for speed but might be blocked in some networks.
TCP is not as fast but a lot harder to block.
Input your preferred protocol. (Default: UDP)

1) UDP
2) TCP

Your choice: 1

You entered the following information:
Username: 6EmasS_eJRurrAzsqT7dnps0
Password: ************************
Tier: Free
Default protocol: UDP

Is this information correct? [Y/n]: Y
Writing configuration to disk...
[!] There was an error connecting to the ProtonVPN API.
[!] Please make sure your connection is working properly!
[root@spy babak]# 

Last edited by SPYAM (2020-11-14 19:55:54)

#2 2020-11-14 17:55:43

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: [SOLVED] Problem connecting to OPENVPN

It’s possible that ProtonVPN is blocked in your region?
Are you aware if VPNs are illegal where you are?

IIRC some countries have declared them illegal and blocking access with firewalls…
If that’s not the case then idk, I don’t have any VPN yet.

On another perspective, have you configured a firewall?

Last edited by GaKu999 (2020-11-14 17:56:05)


My repos • Some snippets

Heisenberg might have been here.

#3 2020-11-14 18:08:13

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 127

Re: [SOLVED] Problem connecting to OPENVPN

GaKu999 wrote:

It’s possible that ProtonVPN is blocked in your region?
Are you aware if VPNs are illegal where you are?

IIRC some countries have declared them illegal and blocking access with firewalls…
If that’s not the case then idk, I don’t have any VPN yet.

On another perspective, have you configured a firewall?

Yes, VPN is limited in our area
But I need VPN for my work for Telegram and YouTube
Unfortunately, in our region, they limit it like this!
An educational site should say:
sudo vim /usr/local/lib/python3.x/dist-packages/protonvpn_cli/utils.py
Found this:
api_domain = «https://api.protonvpn.ch»
Then change to this:
api_domain = «https://api.protonmail.ch»
The problem will be solved!
But I can not find the utils.py file !!

#4 2020-11-14 18:17:19

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: [SOLVED] Problem connecting to OPENVPN

SPYAM wrote:

sudo vim /usr/local/lib/python3.x/dist-packages/protonvpn_cli/utils.py

Try sudo vim /usr/lib/python3.x/dist-packages/protonvpn_cli/utils.py
EDIT: Ignore that

Run:

pacman -Ql protonvpn-cli-ng | grep utils.py

You will get the path. Remember to search owner package always when in doubt.

And remember, ArchPackages don’t place stuff in /usr/local, that is admin stuff place.

Last edited by GaKu999 (2020-11-14 18:21:28)


My repos • Some snippets

Heisenberg might have been here.

#5 2020-11-14 18:39:10

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 127

Re: [SOLVED] Problem connecting to OPENVPN

GaKu999 wrote:

SPYAM wrote:

sudo vim /usr/local/lib/python3.x/dist-packages/protonvpn_cli/utils.py

Try sudo vim /usr/lib/python3.x/dist-packages/protonvpn_cli/utils.py
EDIT: Ignore that

Run:

pacman -Ql protonvpn-cli-ng | grep utils.py

You will get the path. Remember to search owner package always when in doubt.

And remember, ArchPackages don’t place stuff in /usr/local, that is admin stuff place.

I found the file and replaced it, but it still didn’t work !!
What do you think I should do? I am tired of this restriction that is in our area. There was a lot of program in Windows so that we can overcome this restriction, but I do not know Linux, how can it be connected to a VPN for free !?

EDIT :
I have ping to both sites, why is it not connected and gives an error ???

[babak@spy ~]$ ping -c 4 api.protonvpn.ch
PING api.protonvpn.ch (185.159.159.170) 56(84) bytes of data.
64 bytes from 185.159.159.170 (185.159.159.170): icmp_seq=1 ttl=45 time=179 ms
64 bytes from 185.159.159.170 (185.159.159.170): icmp_seq=2 ttl=45 time=170 ms
64 bytes from 185.159.159.170 (185.159.159.170): icmp_seq=3 ttl=45 time=171 ms
64 bytes from 185.159.159.170 (185.159.159.170): icmp_seq=4 ttl=45 time=171 ms

--- api.protonvpn.ch ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 170.421/172.780/178.658/3.410 ms
[babak@spy ~]$ ping -c 4 api.proronmail.ch
PING api.proronmail.ch (103.224.182.250) 56(84) bytes of data.
64 bytes from lb-182-250.above.com (103.224.182.250): icmp_seq=1 ttl=40 time=306 ms
64 bytes from lb-182-250.above.com (103.224.182.250): icmp_seq=2 ttl=40 time=305 ms
64 bytes from lb-182-250.above.com (103.224.182.250): icmp_seq=3 ttl=40 time=305 ms
64 bytes from lb-182-250.above.com (103.224.182.250): icmp_seq=4 ttl=40 time=304 ms

--- api.proronmail.ch ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 304.156/304.895/305.622/0.535 ms
[babak@spy ~]$ 

Last edited by SPYAM (2020-11-14 18:43:53)

#6 2020-11-14 18:45:31

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: [SOLVED] Problem connecting to OPENVPN

Depends on goal, do you want to skip firewall? Or privacy?

I recommend a non-blocked VPN, but that is difficult.
Worse if VPNs are illegal where you are. (You have not said they are, but I assume they are indeed not wanted by the ones that block them)
I can’t account for one that will work for you.

Last edited by GaKu999 (2020-11-14 18:46:12)


My repos • Some snippets

Heisenberg might have been here.

#7 2020-11-14 18:48:44

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 127

Re: [SOLVED] Problem connecting to OPENVPN

GaKu999 wrote:

Depends on goal, do you want to skip firewall? Or privacy?

I recommend a non-blocked VPN, but that is difficult.
Worse if VPNs are illegal where you are. (You have not said they are, but I assume they are indeed not wanted by the ones that block them)
I can’t account for one that will work for you.

I really do not know the firewall and what you say …
I just want to be able to connect to Telegram and YouTube, which are filtered in our country, and connect.

#8 2020-11-14 18:50:29

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: [SOLVED] Problem connecting to OPENVPN

SPYAM wrote:

which are filtered in our country

That is firewall, that is what you skip with VPN.
Problem is, how many VPNs your region blocks…I do not know.


My repos • Some snippets

Heisenberg might have been here.

#9 2020-11-14 18:53:22

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 127

Re: [SOLVED] Problem connecting to OPENVPN

GaKu999 wrote:

SPYAM wrote:

which are filtered in our country

That is firewall, that is what you skip with VPN.
Problem is, how many VPNs your region blocks…I do not know.

I do not really know
I just hope I can connect to a VPN
To easily access Telegram and YouTube sites and programs sad

In cases Proton VPN can’t connect, please refer to the following list of solutions. Most of the steps described here can be done without direct support from our support team, but in case you get stuck or don’t know how to handle certain things, we will be there for you.

Server downtimes

If you have connection problems with a single server or country, it’s quite likely a temporary problem or downtime, e.g. for maintenance. We work to ensure maximum server uptime. However once in a while a server may still go down unexpectedly. If the problem persists on all servers, please also check your firewall/ antivirus settings.

 System and compatibility issues

 Installation

  • Make sure Proton VPN is properly installed and that you have granted permission to install the OpenVPN TAP adapter. For detailed instructions on how to install Proton VPN please visit this article.

System time

  • If your system time is not set correctly, you might be unable to log into Proton VPN. If your system time is, for example, set to April, 1st, 2005, an SSL certificate from 2007 will be rejected and the connection will fail.

Reinstall Proton VPN

  • Sometimes an operating system takes a wrong turn and slows down a program. please uninstall Proton VPN completely and re-install it. The following links have detailed instructions on how to uninstall and install Proton VPN.

 Account Problems

Wrong credentials

  • Please make sure that you typed your credentials correctly before attempting to connect. Learn more about locating your Proton VPN password.

Expired account

  • If your subscription ran out, Proton VPN will not connect to the internet. Please make sure that you have a valid subscription or upgrade your account.

Not connected to the internet while attempting to connect Proton VPN

 Please make sure that your internet connection is stable and uninterrupted. If you are using Wi-Fi, please try switching to a cable – Ethernet – connection instead.

Related questions

Does Proton VPN have bandwidth limit?

How to change VPN protocols?

How to use content streaming services with Proton VPN?

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

Сможете ли вы ping api.protonmail.ch ?

Вы случайно не проживаете в России сейчас?

Также обновите свой клиент. Последняя версия — 2.2.0.

Да, я живу в России. Извините, я ошибся, у меня установлена ​​последняя версия. И сайт пингуется

К сожалению, в настоящее время Россия блокирует все сервисы Proton. Подробнее см. Здесь: https://www.reddit.com/r/protonmail/comments/ewrilc/_/fg3vum8.

На данный момент я не думаю, что вы можете многое сделать, чтобы обойти эту проблему. Скорее всего, вам придется вручную настроить OpenVPN, если это даже сработает.

И поскольку вы можете пинговать сайт, по какому IP-адресу вы пинговаете?

PING api.protonmail.ch (185.70.40.185) 56(84) bytes of data.
64 bytes from 185-70-40-185.protonmail.ch (185.70.40.185): icmp_seq=1 ttl=52 time=132 ms

--- api.protonmail.ch ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 131.599/131.599/131.599/0.000 ms

У меня настроен OpenVPN. Но подумал, что утилиту можно поправить, ведь пару дней назад все работало

Интересно. Можете ли вы открыть в браузере https://api.protonmail.ch/vpn/servers ?

Вот в чем проблема … К сожалению, в программе мало что можно сделать.

Пожалуйста, обновите ваш клиент до версии 2.2.1 (только что выпущенной). Изменения в этом выпуске должны вам помочь.

Я пытаюсь использовать клиент на заблокированном Wi-Fi — операторы возятся с DNS и блокируют некоторые порты, но я надеялся туннелировать через TCP. В чем проблема, здесь вы полагаетесь на аутентифицированный DNS?

В настоящее время я получаю сообщение об ошибке HSTS на сайте protonvpn.com. Я могу пинговать api.protonmail.ch на 185.70.41.131. Я подозреваю, что это перехватили. Можно просто попросить клиента использовать определенный IP-адрес. Как насчет зеркалирования сервера API? Для чего здесь нужен API-сервер?

На данный момент мы перешли на https://api.protonvpn.ch . Оба api.protonmail.ch и api.protonvpn.com работают нормально. В настоящее время нет возможности переключить домен API, но он будет добавлен.

Для чего нужен API-сервер? Вы аутентифицируетесь с помощью API, а затем передаете токен? В таких случаях было бы неплохо, если бы вы могли напрямую подключаться к VPN-серверам, используя автономный кеш или их адреса. Если нужен токен, возможно, вы могли бы организовать длительный источник, когда у вас есть незаблокированное соединение.

Используется для получения общедоступного IP-адреса пользователей до и после подключения (чтобы проверить, изменились ли они) и получения последних данных сервера. Тем не менее, это интересная мысль — использовать кешированные данные. Не уверен, что это здорово реализовать.

Привет, у меня такая же проблема, и после устранения неполадок похоже, что api.protonvpn.ch заблокирован в моем местоположении, а api.protonmail.ch — нет. есть ли способ изменить protonvpn-cli на использование protonmail.ch?
Я использую ubuntu 20.04

Не сейчас, это жестко запрограммировано …: confused:

Я посмотрю, смогу ли я добавить это прямо сейчас, тогда оно будет доступно для следующего выпуска …

В зависимости от того, насколько комфортно вы себя чувствуете с ним, теоретически вы можете изменить это самостоятельно в работающей версии:

Перейдите в место установки ProtonVPN-CLI (при установке через sudo pip3 install protonvpn-cli это должно быть /usr/local/lib/python3.8/dist-packages/protonvpn_cli/ )

Отредактируйте utils.py в этом каталоге

vim utils.py

Найдите строку api_domain = "https://api.protonvpn.ch" и измените ее на api_domain = "https://api.protonmail.ch"

Сохраните и попробуйте еще раз. Если вы что-то сломали, вы можете просто удалить и переустановить protonvpn-cli через pip, который должен все восстановить :)

Это работает! Большое тебе спасибо.

@maskari Очевидно, это изменится на обратное, когда вы обновите интерфейс командной строки в следующий раз. Однако следующий выпуск должен содержать # 173, что позволяет вам просто указать предпочитаемый API в файле конфигурации :)

@Rafficer Я изменил Api в файле Python на api.protonmail.ch, но я все еще получаю сообщение об ошибке, я знаю, что могу пинговать, и я могу открыть api.protonmail.ch в моем браузере, но почему я продолжаю получать это ошибка? это была такая же проблема для меня, ubuntu 20.04 8gb ram, живущий в Иране, Protonvpn 2.2.4

Итак, как я могу исправить проблему с api

У меня такая же проблема.
Изменить: теперь я устанавливаю 2.1.0
» ‘
sudo pip3 установить protonvpn_cli == 2.1.0
» ‘
он работает нормально.

@saeedark, я просто нажал клавишу ввода, чтобы подключиться к Нидерландам, а затем получил следующую ошибку:
Отслеживание (последний вызов последний):
Файл «/ usr / local / bin / protonvpn», строка 8, в
sys.exit (главная ())
Файл «/usr/local/lib/python3.8/dist-packages/protonvpn_cli/cli.py», строка 72, в основном
cli ()
Файл «/usr/local/lib/python3.8/dist-packages/protonvpn_cli/cli.py», строка 119, в cli
connection.dialog ()
Файл «/usr/local/lib/python3.8/dist-packages/protonvpn_cli/connection.py», строка 123, в диалоговом окне
openvpn_connect (результат_сервера, результат_протокола)
Файл «/usr/local/lib/python3.8/dist-packages/protonvpn_cli/connection.py», строка 450, в openvpn_connect
shutil.copyfile (TEMPLATE_FILE, OVPN_FILE)
Файл «/usr/lib/python3.8/shutil.py», строка 261, в файле копирования
с open (src, ‘rb’) как fsrc, open (dst, ‘wb’) как fdst:
FileNotFoundError: [Errno 2] Нет такого файла или каталога: ‘/home/alireza/.pvpn-cli/template.ovpn’

@saeedark исправлен, я удалил каталог .pvpn-cli в домашнем каталоге и снова выполнил «protonvpn init»

У меня такая же проблема в Иране. Я могу подключиться к приложению Andriod и версии для Windows, но в Linux у меня есть эта проблема.

У меня такая же проблема.
Изменить: теперь я устанавливаю 2.1.0
» ‘
sudo pip3 установить protonvpn_cli == 2.1.0
» ‘
он работает нормально.

Это сработало для меня 2

Не сейчас, это жестко запрограммировано …

Я посмотрю, смогу ли я добавить это прямо сейчас, тогда оно будет доступно для следующего выпуска …

В зависимости от того, насколько комфортно вы себя чувствуете с ним, теоретически вы можете изменить это самостоятельно в работающей версии:

Перейдите в место установки ProtonVPN-CLI (при установке через sudo pip3 install protonvpn-cli это должно быть /usr/local/lib/python3.8/dist-packages/protonvpn_cli/ )

Отредактируйте utils.py в этом каталоге

vim utils.py

Найдите строку api_domain = "https://api.protonvpn.ch" и измените ее на api_domain = "https://api.protonmail.ch"

Сохраните и попробуйте еще раз. Если вы что-то сломали, вы можете просто удалить и переустановить protonvpn-cli через pip, который должен все восстановить :)

Таким образом я получил ошибку 404

удалите комментарии iranias или shatel, ir irancell и другие заблокируют вторичный api protonvpn

Не сейчас, это жестко запрограммировано … запутано

Я посмотрю, смогу ли я добавить это прямо сейчас, тогда оно будет доступно для следующего выпуска …

В зависимости от того, насколько комфортно вы себя чувствуете с ним, теоретически вы можете изменить это самостоятельно в работающей версии:

Перейдите в место установки ProtonVPN-CLI (при установке через sudo pip3 install protonvpn-cli это должно быть /usr/local/lib/python3.8/dist-packages/protonvpn_cli/ )

Отредактируйте utils.py в этом каталоге

vim utils.py

Найдите строку api_domain = "https://api.protonvpn.ch" и измените ее на api_domain = "https://api.protonmail.ch"

Сохраните и попробуйте еще раз. Если вы что-то сломали, вы можете просто удалить и переустановить protonvpn-cli через pip, который должен все восстановить :)

спасибо @Rafficer

на всякий случай это может помочь: в моем случае эта строка была на самом деле

api_domain = get_config_value("USER", "api_domain").rstrip("/")

который я изменил, как было предложено (и он работает) … но я все еще хотел дважды проверить (… это не должно создавать других проблем, поскольку get_config_value тоже вызывается где-то еще — к лучшему ваших знаний @Rafficer)

Это было изменено, теперь вы можете изменить домен API в файле конфигурации. Поэтому я бы посоветовал вам отменить изменения и установить их в файле конфигурации. :)

Для тех кто застрял после перехода с 2.2.4 на 2.1.0

Мне пришлось изменить api_domain в ~ / .pvpn-cli / pvpn-cli.cfg на api_domain = https://api.protonmail.ch (как и ожидалось с упомянутым новым изменением @Rafficer )

Я понизил версию до 2.1.0, и это устранило проблему с api, поэтому я выполнил команду «protonvpn c», и она ответила «Connected!» но я не могу открывать отфильтрованные веб-сайты, такие как YouTube и Facebook
Изменить: протестировано с 2.2.4 и изменение api_domain на api.protonmail.ch, все еще не работает

Это было изменено, теперь вы можете изменить домен API в файле конфигурации. Поэтому я бы посоветовал вам отменить изменения и установить их в файле конфигурации. :)

Я понизил версию до 2.1.0, и это устранило проблему с api, поэтому я выполнил команду «protonvpn c», и она ответила «Connected!» но я не могу открывать отфильтрованные веб-сайты, такие как YouTube и Facebook
Изменить: протестировано с 2.2.4 и изменение api_domain на api.protonmail.ch, все еще не работает

Это было изменено, теперь вы можете изменить домен API в файле конфигурации. Поэтому я бы посоветовал вам отменить изменения и установить их в файле конфигурации. :)

То же самое…

Не сейчас, это жестко запрограммировано … запутано

Я посмотрю, смогу ли я добавить это прямо сейчас, тогда оно будет доступно для следующего выпуска …

В зависимости от того, насколько комфортно вы себя чувствуете с ним, теоретически вы можете изменить это самостоятельно в работающей версии:

Перейдите в место установки ProtonVPN-CLI (при установке через sudo pip3 install protonvpn-cli это должно быть /usr/local/lib/python3.8/dist-packages/protonvpn_cli/ )

Отредактируйте utils.py в этом каталоге

vim utils.py

Найдите строку api_domain = "https://api.protonvpn.ch" и измените ее на api_domain = "https://api.protonmail.ch"

Сохраните и попробуйте еще раз. Если вы что-то сломали, вы можете просто удалить и переустановить protonvpn-cli через pip, который должен все восстановить :)

Извините за некробампинг, но это, похоже, не имело удовлетворительного решения.
Итак, в дополнение к этому я также изменил _cli.py_, который также сохраняет ссылку на домен protonvpn, в моем случае заблокированный Fortinet в месте расположения Starbucks.
Пришлось сделать это, потому что при запуске задачи _init_ он захватывает домен из локальной переменной, определенной в методе _init_cli_
Итак, я понял, что оба места нужно изменить, как для начальной загрузки, так и для обычного подключения.
Переопределение переменной в _.pvpn-cli / pvpn-cli.cfg_ у меня не сработало.

Я получаю ту же ошибку, потому что API-интерфейсы ProtonVPN заблокированы в моем регионе. Я могу подключиться на Windows и Android, но клиент protonvpn-cli не работает.

@mmdmine Живя в том же регионе, я могу подключиться. Убедитесь, что у вас есть api_domain = https://api.protonmail.ch

@mmdmine Живя в том же регионе, я могу подключиться. Убедитесь, что у вас есть api_domain = https://api.protonmail.ch

Он использовал api.protonvpn.ch , я изменил его на то, что вы сказали, и теперь это исправлено. Спасибо!

Спасибо, ребята, @mortzi @julianheres @Rafficer ! Я просто сходил с ума.

Я столкнулся с той же проблемой, с той же проблемой подключения, и я использовал версию protonvpn-cli 2.2.4, поэтому удалил 2.2.4 и установил 2.1.0, теперь он работает нормально.
Спасибо всем @Rafficer

Была ли эта страница полезной?

0 / 5 — 0 рейтинги

Понравилась статья? Поделить с друзьями:
  • There was an error connecting to the platform please restart your game client valorant
  • There was an error connecting to the device
  • There was an error connecting to the apple id server mac
  • There was an error completing your request please try again перевод
  • There was an error completing your request please try again planetside