Skip to content

vk_api.longpoll: KeyError: 'pts' #514

Description

@gorinovdan

Ошибка при запуске user longpoll. Уже запущенные сессии продолжают работать.

Traceback (most recent call last):
  File "C:\Users\Asuse\Documents\Study\OtherProjects\WDB\OtherTest.py", line 97, in <module>
    longpoll = VkLongPoll(vk_session)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Asuse\Documents\Study\OtherProjects\WDB\.venv\Lib\site-packages\vk_api\longpoll.py", line 511, in __init__
    self.update_longpoll_server()
  File "C:\Users\Asuse\Documents\Study\OtherProjects\WDB\.venv\Lib\site-packages\vk_api\longpoll.py", line 535, in update_longpoll_server
    self.pts = response['pts']
               ~~~~~~~~^^^^^^^
KeyError: 'pts'

Окружение

vk_api: 11.9.9

API: default (5.92)

Пример

vk_session = vk_api.VkApi(token=TOKEN)
longpoll = VkLongPoll(vk_session)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions