Прокси покупался, находится в беларуси, работает исправно, проверялся
этим сайтом:
В коде он подключается так:
from yandex_music.client import Client
from yandex_music.utils.request import Request
from yandex_music.exceptions import NetworkError
client = None
request = Request(proxy_url='user:password@195.245.103.194:62986')
client = Client("Token", request=request).init()
И выдаёт ошибку:
Traceback (most recent call last):
File "/home/container/main.py", line 32, in <module>
client = Client("y0_", request=request).init()
File "/home/container/.local/lib/python3.9/site-packages/yandex_music/client.py", line 66, in wrapper
result = method(*args, **kwargs)
File "/home/container/.local/lib/python3.9/site-packages/yandex_music/client.py", line 152, in init
self.me = self.account_status()
File "/home/container/.local/lib/python3.9/site-packages/yandex_music/client.py", line 66, in wrapper
result = method(*args, **kwargs)
File "/home/container/.local/lib/python3.9/site-packages/yandex_music/client.py", line 173, in account_status
result = self._request.get(url, timeout=timeout, *args, **kwargs)
File "/home/container/.local/lib/python3.9/site-packages/yandex_music/utils/request.py", line 242, in get
result = self._request_wrapper(
File "/home/container/.local/lib/python3.9/site-packages/yandex_music/utils/request.py", line 200, in _request_wrapper
raise NetworkError(e)
yandex_music.exceptions.NetworkError: Please check proxy URL. It is malformed and could be missing the host.
Прокси вставлялся примером с гитхаба.