-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging.log
81 lines (79 loc) · 6.93 KB
/
logging.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
INFO:httpx:HTTP Request: POST https://api.deepinfra.com/v1/openai/chat/completions "HTTP/1.1 200 OK"
ERROR:root:Ïðîèçîøëà îøèáêà: 'TeleBot' object has no attribute 'get_chat_history'
Traceback (most recent call last):
File "D:\Projects\pythonProject\tgbotck\main_loc_mixtral.py", line 163, in inner_search_posts
upload_posts(bot, '@guapck')
File "D:\Projects\pythonProject\tgbotck\main_loc_mixtral.py", line 122, in upload_posts
messages = bot.get_chat_history(chat_id=channel, limit=10000, until_date=start_of_month)
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TeleBot' object has no attribute 'get_chat_history'
INFO:httpx:HTTP Request: POST https://api.deepinfra.com/v1/openai/chat/completions "HTTP/1.1 200 OK"
ERROR:TeleBot:Threaded polling exception: A request to the Telegram API was unsuccessful. Error code: 409. Description: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
ERROR:TeleBot:Exception traceback:
Traceback (most recent call last):
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\__init__.py", line 1073, in __threaded_polling
polling_thread.raise_exceptions()
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\util.py", line 108, in raise_exceptions
raise self.exception_info
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\util.py", line 90, in run
task(*args, **kwargs)
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\__init__.py", line 649, in __retrieve_updates
updates = self.get_updates(offset=(self.last_update_id + 1),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\__init__.py", line 623, in get_updates
json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates, long_polling_timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\apihelper.py", line 321, in get_updates
return _make_request(token, method_url, params=payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\apihelper.py", line 162, in _make_request
json_result = _check_result(method_name, result)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\apihelper.py", line 189, in _check_result
raise ApiTelegramException(method_name, result, result_json)
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 409. Description: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
INFO:httpx:HTTP Request: POST https://api.deepinfra.com/v1/openai/chat/completions "HTTP/1.1 200 OK"
ERROR:root:Ïðîèçîøëà îøèáêà: 'TeleBot' object has no attribute 'get_chat_history'
Traceback (most recent call last):
File "D:\Projects\pythonProject\tgbotck\main_loc_mixtral.py", line 161, in inner_search_posts
upload_posts(bot, channel_id)
File "D:\Projects\pythonProject\tgbotck\main_loc_mixtral.py", line 122, in upload_posts
messages = bot.get_chat_history(chat_id=channel_id, limit=10000, until_date=start_of_month)
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TeleBot' object has no attribute 'get_chat_history'
ERROR:root:Ïðîèçîøëà îøèáêà ïðè îáðàáîòêå îáðàòíîé ñâÿçè: [Errno 2] No such file or directory: '/home/cktg/botdir/ck-bot-table-0b6eeaad3a0d.json'
Traceback (most recent call last):
File "D:\Projects\pythonProject\tgbotck\main_loc_mixtral.py", line 188, in process_feedback_text
add_question_to_google_sheet(message.from_user.id, message.from_user.username, message.text)
File "D:\Projects\pythonProject\tgbotck\main_loc_mixtral.py", line 88, in add_question_to_google_sheet
creds = ServiceAccountCredentials.from_json_keyfile_name("/home/cktg/botdir/ck-bot-table-0b6eeaad3a0d.json", scope)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\oauth2client\service_account.py", line 219, in from_json_keyfile_name
with open(filename, 'r') as file_obj:
^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/cktg/botdir/ck-bot-table-0b6eeaad3a0d.json'
INFO:httpx:HTTP Request: POST https://api.deepinfra.com/v1/openai/chat/completions "HTTP/1.1 200 OK"
ERROR:TeleBot:Threaded polling exception: A request to the Telegram API was unsuccessful. Error code: 409. Description: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
ERROR:TeleBot:Exception traceback:
Traceback (most recent call last):
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\__init__.py", line 1073, in __threaded_polling
polling_thread.raise_exceptions()
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\util.py", line 108, in raise_exceptions
raise self.exception_info
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\util.py", line 90, in run
task(*args, **kwargs)
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\__init__.py", line 649, in __retrieve_updates
updates = self.get_updates(offset=(self.last_update_id + 1),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\__init__.py", line 623, in get_updates
json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates, long_polling_timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\apihelper.py", line 321, in get_updates
return _make_request(token, method_url, params=payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\apihelper.py", line 162, in _make_request
json_result = _check_result(method_name, result)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kolya\AppData\Local\Programs\Python\Python311\Lib\site-packages\telebot\apihelper.py", line 189, in _check_result
raise ApiTelegramException(method_name, result, result_json)
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 409. Description: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running