You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In telegram i ask for /help and i got an error
update = {
"update_id": 879769545,
"message": {
"chat": {
"id": -1002254192346,
"type": "supergroup",
"username": "TripleMatch3Tiles",
"title": "Triple Match 3 Tiles"
},
"text": "/help@TripleMatchBot",
"group_chat_created": false,
"entities": [
{
"length": 20,
"type": "bot_command",
"offset": 0
}
],
"message_id": 27,
"delete_chat_photo": false,
"date": 1733938025,
"supergroup_chat_created": false,
"channel_chat_created": false,
"from": {
"is_bot": false,
"first_name": "Zurgame",
"id": 7908088558
}
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/telegram/ext/_application.py", line 1104, in process_update
await coroutine
File "/usr/local/lib/python3.8/site-packages/telegram/ext/_handler.py", line 141, in handle_update
return await self.callback(update, context)
File "bot/bot.py", line 151, in help_handle
await register_user_if_not_exists(update, context, update.message.from_user)
File "bot/bot.py", line 78, in register_user_if_not_exists
if not db.check_if_user_exists(user.id):
File "/code/bot/database.py", line 19, in check_if_user_exists
if self.user_collection.count_documents({"_id": user_id}) > 0:
File "/usr/local/lib/python3.8/site-packages/pymongo/collection.py", line 1842, in count_documents
return self._retryable_non_cursor_read(_cmd, session)
File "/usr/local/lib/python3.8/site-packages/pymongo/collection.py", line 1847, in _retryable_non_cursor_read
with client._tmp_session(session) as s:
File "/usr/local/lib/python3.8/contextlib.py", line 113, in enter
return next(self.gen)
File "/usr/local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1757, in _tmp_session
s = self._ensure_session(session)
File "/usr/local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1740, in _ensure_session
return self.__start_session(True, causal_consistency=False)
File "/usr/local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1685, in __start_session
self._topology._check_implicit_session_support()
File "/usr/local/lib/python3.8/site-packages/pymongo/topology.py", line 538, in _check_implicit_session_support
self._check_session_support()
File "/usr/local/lib/python3.8/site-packages/pymongo/topology.py", line 554, in _check_session_support
self._select_servers_loop(
File "/usr/local/lib/python3.8/site-packages/pymongo/topology.py", line 238, in _select_servers_loop
raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: mongo:27017: [Errno -3] Temporary failure in name resolution, Timeout: 30s, Topology Description: <TopologyDescription id: 6759caf6be73589422b9c30a, topology_type: Unknown, servers: [<ServerDescription ('mongo', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('mongo:27017: [Errno -3] Temporary failure in name resolution')>]>
To Reproduce
Steps to reproduce the behavior:
Go to '.triplematchbot..'
type /help
Expected behavior
Display help file
Desktop (please complete the following information):
OS: OSX
App telegram for OSX
Bot running on. a VM of Ubontu in docker
I can share my screen with Anydesk if you would like
The text was updated successfully, but these errors were encountered:
Describe the bug
In telegram i ask for /help and i got an error
update = {
"update_id": 879769545,
"message": {
"chat": {
"id": -1002254192346,
"type": "supergroup",
"username": "TripleMatch3Tiles",
"title": "Triple Match 3 Tiles"
},
"text": "/help@TripleMatchBot",
"group_chat_created": false,
"entities": [
{
"length": 20,
"type": "bot_command",
"offset": 0
}
],
"message_id": 27,
"delete_chat_photo": false,
"date": 1733938025,
"supergroup_chat_created": false,
"channel_chat_created": false,
"from": {
"is_bot": false,
"first_name": "Zurgame",
"id": 7908088558
}
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/telegram/ext/_application.py", line 1104, in process_update
await coroutine
File "/usr/local/lib/python3.8/site-packages/telegram/ext/_handler.py", line 141, in handle_update
return await self.callback(update, context)
File "bot/bot.py", line 151, in help_handle
await register_user_if_not_exists(update, context, update.message.from_user)
File "bot/bot.py", line 78, in register_user_if_not_exists
if not db.check_if_user_exists(user.id):
File "/code/bot/database.py", line 19, in check_if_user_exists
if self.user_collection.count_documents({"_id": user_id}) > 0:
File "/usr/local/lib/python3.8/site-packages/pymongo/collection.py", line 1842, in count_documents
return self._retryable_non_cursor_read(_cmd, session)
File "/usr/local/lib/python3.8/site-packages/pymongo/collection.py", line 1847, in _retryable_non_cursor_read
with client._tmp_session(session) as s:
File "/usr/local/lib/python3.8/contextlib.py", line 113, in enter
return next(self.gen)
File "/usr/local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1757, in _tmp_session
s = self._ensure_session(session)
File "/usr/local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1740, in _ensure_session
return self.__start_session(True, causal_consistency=False)
File "/usr/local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1685, in __start_session
self._topology._check_implicit_session_support()
File "/usr/local/lib/python3.8/site-packages/pymongo/topology.py", line 538, in _check_implicit_session_support
self._check_session_support()
File "/usr/local/lib/python3.8/site-packages/pymongo/topology.py", line 554, in _check_session_support
self._select_servers_loop(
File "/usr/local/lib/python3.8/site-packages/pymongo/topology.py", line 238, in _select_servers_loop
raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: mongo:27017: [Errno -3] Temporary failure in name resolution, Timeout: 30s, Topology Description: <TopologyDescription id: 6759caf6be73589422b9c30a, topology_type: Unknown, servers: [<ServerDescription ('mongo', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('mongo:27017: [Errno -3] Temporary failure in name resolution')>]>
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Display help file
Desktop (please complete the following information):
Bot running on. a VM of Ubontu in docker
I can share my screen with Anydesk if you would like
The text was updated successfully, but these errors were encountered: