Hi Team, I am having difficulties configuring tap-...
# troubleshooting
a
Hi Team, I am having difficulties configuring tap-mongodb. when I execute
tap-mongodb --config ~/config.json --discover > ~/catalog.json
Copy code
CRITICAL localhost:27017: [Errno 54] Connection reset by peer
Traceback (most recent call last):
  File "/Users/ashishkumar/Desktop/meltano_elt/.venv/bin/tap-mongodb", line 8, in <module>
    sys.exit(main())
  File "/Users/ashishkumar/Desktop/meltano_elt/.venv/lib/python3.9/site-packages/tap_mongodb/__init__.py", line 395, in main
    raise exc
  File "/Users/ashishkumar/Desktop/meltano_elt/.venv/lib/python3.9/site-packages/tap_mongodb/__init__.py", line 392, in main
    main_impl()
  File "/Users/ashishkumar/Desktop/meltano_elt/.venv/lib/python3.9/site-packages/tap_mongodb/__init__.py", line 379, in main_impl
    client.server_info().get('version', 'unknown'))
  File "/Users/ashishkumar/Desktop/meltano_elt/.venv/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1656, in server_info
    return self.admin.command("buildinfo",
  File "/Users/ashishkumar/Desktop/meltano_elt/.venv/lib/python3.9/site-packages/pymongo/database.py", line 654, in command
    with self.__client._socket_for_reads(
  File "/Users/ashishkumar/opt/anaconda3/lib/python3.9/contextlib.py", line 119, in __enter__
    return next(self.gen)
  File "/Users/ashishkumar/Desktop/meltano_elt/.venv/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1135, in _socket_for_reads
    server = topology.select_server(read_preference)
  File "/Users/ashishkumar/Desktop/meltano_elt/.venv/lib/python3.9/site-packages/pymongo/topology.py", line 224, in select_server
    return random.choice(self.select_servers(selector,
  File "/Users/ashishkumar/Desktop/meltano_elt/.venv/lib/python3.9/site-packages/pymongo/topology.py", line 183, in select_servers
    server_descriptions = self._select_servers_loop(
  File "/Users/ashishkumar/Desktop/meltano_elt/.venv/lib/python3.9/site-packages/pymongo/topology.py", line 199, in _select_servers_loop
    raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 54] Connection reset by peer
My config file looks like this: { “password”: “<password>“, “user”: “<username>“, “host”: “<host ip address>“, “port”: “<port>“, “database”: “<database name>” } ``````