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

Unknown error. Please send bugreport to [email protected] #466

Open
please-fill-out-this-field opened this issue Jun 19, 2022 · 0 comments

Comments

@please-fill-out-this-field
Copy link

В некогда работавшем скрипте есть вот такой кусок:

vk_session = vk_api.VkApi(
    login, password,
    app_id=app_id,
    config_filename="{}/vk_config.v2.json".format(work_dir),
    auth_handler=lambda: auth_handler(tfa_sockpath)
)

try:
    vk_session.http.headers['User-agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0'
    vk_session.auth(token_only=True)
except Exception as e:
    logging.critical(f"Authorization failed: {e}")
    exit(70)

token_only и копипаста с юзерагентами - не увенчавшаяся успехом попытка применить решение из #432.

Когда выполнение доходит до .auth(), скрипт падает с одной из нижеприведённых ошибок.

Если vk_config.v2.json не существует, возникает следующая ошибка:

Authorization failed: Unknown error. Please send bugreport to [email protected]

Если же существует - ошибка другая:

Authorization failed: Expecting value: line 1 column 1 (char 0)

Наличие аргумента token_only на результат не влияет.

Окружение

vk_api: 11.8.0

Тестировано на питонах 3.8.4 (pyenv) и 3.10.5 на линуксах.

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

1 participant