Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug running on ubuntu v20 #31

Open
Mccpie01 opened this issue Dec 11, 2024 · 0 comments
Open

Bug running on ubuntu v20 #31

Mccpie01 opened this issue Dec 11, 2024 · 0 comments

Comments

@Mccpie01
Copy link

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:

  1. Go to '.triplematchbot..'
  2. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant