error.log: {"timestamp": "2024-06-26 07:51:39,183", "level": "ERROR", "message": "Error in app.mongo:connect, Message: The DNS query name does not exist: _mongodb._tcp.lws-cluster.xxx.mongodb.net., Type: (, ConfigurationError('The DNS query name does not exist: _mongodb._tcp.lws-cluster.xxx.mongodb.net.'), )", "stack_trace": "Traceback (most recent call last):\n File \"D:\\Hasan\\Project directory\\Test_Python-Fast-API\\Test_Python-Fast-API\\app\\mongo.py\", line 40, in connect\n self.client = AsyncIOMotorClient(connection_string)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"d:\\Hasan\\Project directory\\Test_Python-Fast-API\\Test_Python-Fast-API\\venv\\Lib\\site-packages\\motor\\core.py\", line 163, in __init__\n delegate = self.__delegate_class__(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"d:\\Hasan\\Project directory\\Test_Python-Fast-API\\Test_Python-Fast-API\\venv\\Lib\\site-packages\\pymongo\\mongo_client.py\", line 774, in __init__\n res = uri_parser.parse_uri(\n ^^^^^^^^^^^^^^^^^^^^^\n File \"d:\\Hasan\\Project directory\\Test_Python-Fast-API\\Test_Python-Fast-API\\venv\\Lib\\site-packages\\pymongo\\uri_parser.py\", line 547, in parse_uri\n nodes = dns_resolver.get_hosts()\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File \"d:\\Hasan\\Project directory\\Test_Python-Fast-API\\Test_Python-Fast-API\\venv\\Lib\\site-packages\\pymongo\\srv_resolver.py\", line 140, in get_hosts\n _, nodes = self._get_srv_response_and_hosts(True)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"d:\\Hasan\\Project directory\\Test_Python-Fast-API\\Test_Python-Fast-API\\venv\\Lib\\site-packages\\pymongo\\srv_resolver.py\", line 120, in _get_srv_response_and_hosts\n results = self._resolve_uri(encapsulate_errors)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"d:\\Hasan\\Project directory\\Test_Python-Fast-API\\Test_Python-Fast-API\\venv\\Lib\\site-packages\\pymongo\\srv_resolver.py\", line 114, in _resolve_uri\n raise ConfigurationError(str(exc)) from None\npymongo.errors.ConfigurationError: The DNS query name does not exist: _mongodb._tcp.lws-cluster.xxx.mongodb.net."} {"timestamp": "2024-06-26 07:51:39,228", "level": "ERROR", "message": "Error in app.mongo:get_database, Message: 'NoneType' object is not subscriptable, Type: (, TypeError(\"'NoneType' object is not subscriptable\"), )", "stack_trace": "Traceback (most recent call last):\n File \"D:\\Hasan\\Project directory\\Test_Python-Fast-API\\Test_Python-Fast-API\\app\\mongo.py\", line 64, in get_database\n return await mongo_db_instance.get_database(db_name)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"D:\\Hasan\\Project directory\\Test_Python-Fast-API\\Test_Python-Fast-API\\app\\mongo.py\", line 53, in get_database\n return self.client[db_name]\n ~~~~~~~~~~~^^^^^^^^^\nTypeError: 'NoneType' object is not subscriptable"} {"timestamp": "2024-06-26 07:51:39,233", "level": "ERROR", "message": "llm:cache_response exception", "stack_trace": "Traceback (most recent call last):\n File \"D:\\Hasan\\Project directory\\Test_Python-Fast-API\\Test_Python-Fast-API\\app\\services\\llm_api.py\", line 88, in cache_response\n db = await get_database(\"llm_cache_db\")\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"D:\\Hasan\\Project directory\\Test_Python-Fast-API\\Test_Python-Fast-API\\app\\mongo.py\", line 64, in get_database\n return await mongo_db_instance.get_database(db_name)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"D:\\Hasan\\Project directory\\Test_Python-Fast-API\\Test_Python-Fast-API\\app\\mongo.py\", line 53, in get_database\n return self.client[db_name]\n ~~~~~~~~~~~^^^^^^^^^\nTypeError: 'NoneType' object is not subscriptable"} {"timestamp": "2024-06-26 07:51:39,233", "level": "ERROR", "message": "Failed to generate Instagram posts"}