Answer the question
In order to leave comments, you need to log in
Why is authorization by VK API token not happening?
The token was received in group management, here is the code:
vk_session = vk_api.VkApi(token='###########')
longpoll = VkLongPoll(vk_session)
vk = vk_session.get_api()
try:
vk_session.auth(token_only=True)
except vk_api.AuthError as error_msg:
print(error_msg)
Login is required to auth
vk_api.exceptions.ApiError: [5] User authorization failed: no access_token passed.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question