GithubHelp home page GithubHelp logo

Comments (13)

MarshalX avatar MarshalX commented on June 26, 2024

А клиент как создаётся?

from yandex-music-api.

json1c avatar json1c commented on June 26, 2024

А клиент как создаётся?

def __init__(self):
    self.client = ClientAsync(config.yandex.token)

from yandex-music-api.

MarshalX avatar MarshalX commented on June 26, 2024

@json1c а как был получен токен?

from yandex-music-api.

json1c avatar json1c commented on June 26, 2024

@json1c а как был получен токен?

Через https://music-yandex-bot.ru/

Думаешь, токен невалидный или не хватает прав?

from yandex-music-api.

MarshalX avatar MarshalX commented on June 26, 2024

@json1c А откуда запрос делаешь? С какой страны? А подписка на аккаунте есть?

from yandex-music-api.

json1c avatar json1c commented on June 26, 2024

@json1c А откуда запрос делаешь? С какой страны? А подписка на аккаунте есть?

Страна - Германия, подписки нет

from yandex-music-api.

MarshalX avatar MarshalX commented on June 26, 2024

@json1c Вот в этом и проблема может быть. Нук сделай или без токена запрос, без автризации вовсе, или с СНГ прокси

from yandex-music-api.

json1c avatar json1c commented on June 26, 2024

@json1c Вот в этом и проблема может быть. Нук сделай или без токена запрос, без автризации вовсе, или с СНГ прокси

Без токена

>>> from yandex_music import Client
>>> client = Client()
Yandex Music API v2.1.1, Copyright (C) 2019-2023 Ilya (Marshal) <https://github.com/MarshalX>
Licensed under the terms of the GNU Lesser General Public License v3 (LGPLv3)

>>> client.search("Rammstein")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/eyesaver/.local/lib/python3.10/site-packages/yandex_music/client.py", line 70, in wrapper
    result = method(*args, **kwargs)
  File "/home/eyesaver/.local/lib/python3.10/site-packages/yandex_music/client.py", line 766, in search
    result = self._request.get(url, params, *args, **kwargs)
  File "/home/eyesaver/.local/lib/python3.10/site-packages/yandex_music/utils/request.py", line 263, in get
    result = self._request_wrapper(
  File "/home/eyesaver/.local/lib/python3.10/site-packages/yandex_music/utils/request.py", line 242, in _request_wrapper
    raise NetworkError(f'{message} ({resp.status_code}): {resp.content}')
yandex_music.exceptions.NetworkError: {'name': 'unknown', 'message': 'omitted'}  (500): b'{"invocationInfo":{"req-id":"1684409462368010-4988538790264802953","hostname":"music-stable-back-sas-78.sas.yp-c.yandex.net","exec-duration-millis":0},"error":{"name":"unknown","message":"omitted"}}'

from yandex-music-api.

json1c avatar json1c commented on June 26, 2024

а если просто купить подписку, проблема пройдет?

from yandex-music-api.

MarshalX avatar MarshalX commented on June 26, 2024

@json1c пока что непонятно

from yandex-music-api.

MarshalX avatar MarshalX commented on June 26, 2024

@glebliutsko

from yandex-music-api.

MarshalX avatar MarshalX commented on June 26, 2024

а если просто купить подписку, проблема пройдет?

Проверил. Да, мой аккаунт с подпиской из Польши работает нормально. Без подписки 500 ошибка. Без авторизации 500 ошибка

from yandex-music-api.

json1c avatar json1c commented on June 26, 2024

а если просто купить подписку, проблема пройдет?

Проверил. Да, мой аккаунт с подпиской из Польши работает нормально. Без подписки 500 ошибка. Без авторизации 500 ошибка

Да, работает, тоже проверил

from yandex-music-api.

Related Issues (20)

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.

  • 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.

  • 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.

  • D3 photo D3

    Data-Driven Documents codes.