2020-11-17 18:20:29,083: Exception on / [POST]
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3.5/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3.5/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.5/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3.5/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3.5/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/LibraryKeeper/mysite/flask_app.py", line 44, in hello_world
create_answer(data['object']['message'], token)
File "/home/LibraryKeeper/mysite/flask_app.py", line 32, in create_answer
message = msgSend(message, user_id)
File "/home/LibraryKeeper/mysite/message_send.py", line 29, in msgSend
r = vk_api.wall.get(domain="your_demon_club",offset=1,count=1,filter="owner")
File "/home/LibraryKeeper/.local/lib/python3.5/site-packages/vk/api.py", line 173, in __call__
return self._api._session.make_request(self)
File "/home/LibraryKeeper/.local/lib/python3.5/site-packages/vk/api.py", line 102, in make_request
raise error
vk.exceptions.VkAPIError: 27. Group authorization failed: method is unavailable with group auth.. request_params = {'filter': 'owner', 'oauth': '1', 'count': '1', 'offset': '1', 'v': '5.103', 'method': 'wall.get', 'domain': 'your_demon_club'}
Александр Николаев, Она там есть да но мой бот работает вне консоли. То есть он при запросе из вк думает что ему надо и отвечает. Или можешь мне объяснить как действия бота в консоли, просто на сайте у меня выключены все консоли а бот спокойно работает.
P.S.
Прости я наверное тебя достал но я стараюсь понять.
Dr3g0nra1der, Прости. Я немного не дописал сюда код. Так то он отвечает на сообщения "Привет" и "Пока" а на сообщение "новый пост" он не отвечает, а консоль я посмотреть не могу так как бот работает на сайте pythonanywhere без консоли
Написано
Войдите на сайт
Чтобы задать вопрос и получить на него квалифицированный ответ.
2020-11-17 18:20:29,083: Exception on / [POST]
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3.5/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3.5/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.5/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3.5/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3.5/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/LibraryKeeper/mysite/flask_app.py", line 44, in hello_world
create_answer(data['object']['message'], token)
File "/home/LibraryKeeper/mysite/flask_app.py", line 32, in create_answer
message = msgSend(message, user_id)
File "/home/LibraryKeeper/mysite/message_send.py", line 29, in msgSend
r = vk_api.wall.get(domain="your_demon_club",offset=1,count=1,filter="owner")
File "/home/LibraryKeeper/.local/lib/python3.5/site-packages/vk/api.py", line 173, in __call__
return self._api._session.make_request(self)
File "/home/LibraryKeeper/.local/lib/python3.5/site-packages/vk/api.py", line 102, in make_request
raise error
vk.exceptions.VkAPIError: 27. Group authorization failed: method is unavailable with group auth.. request_params = {'filter': 'owner', 'oauth': '1', 'count': '1', 'offset': '1', 'v': '5.103', 'method': 'wall.get', 'domain': 'your_demon_club'}