So i am creating an application (website) and keep running into this error (pasted below). I was able to connect at one point but now I can’t. I tried whitelisting and I keep checking my mongodb url. I am not sure what I am doing wrong. Any help would be great thanks. I am running my backend through GCP Cloud Run and frontend with App Engine. Database is MongoDB Atlas. Let me know if there are any other things I need to clarify.
DEFAULT 2025-07-26T02:47:05Z INFO: 172.17.0.4:34730 - “OPTIONS /auth/signup HTTP/1.1” 200 OK
INFO 2025-07-26T02:47:05.177729Z [httpRequest.requestMethod: OPTIONS] [httpRequest.status: 200] [httpRequest.responseSize: 267 B] [httpRequest.userAgent: Chrome 138.0.0.0] https://api-dot-solution-finder-462218.uc.r.appspot.com/auth/signup
DEFAULT 2025-07-26T02:47:05.201Z [httpRequest.requestMethod: OPTIONS] [httpRequest.status: 200] [httpRequest.responseSize: 2 B] [httpRequest.latency: 3 ms] [httpRequest.userAgent: Chrome 138.0.0.0] /auth/signup
WARNING 2025-07-26T02:47:05.245748Z [httpRequest.requestMethod: POST] [httpRequest.status: 500] [httpRequest.responseSize: 233 B] [httpRequest.userAgent: Chrome 138.0.0.0] https://api-dot-solution-finder-462218.uc.r.appspot.com/auth/signup
WARNING 2025-07-26T02:47:18.185Z [httpRequest.requestMethod: GET] [httpRequest.status: 499] [httpRequest.latency: 10 s] [httpRequest.userAgent: GoogleHC 1.0] / failReason:“null”
INFO 2025-07-26T02:47:20.004194304Z [httpRequest.requestMethod: GET] [httpRequest.status: 200] [httpRequest.responseSize: 2 B] [httpRequest.latency: 0 ms] [httpRequest.userAgent: GoogleHC 1.0] /liveness_check
INFO 2025-07-26T02:47:20.160Z [httpRequest.requestMethod: GET] [httpRequest.status: 200] [httpRequest.responseSize: 2 B] [httpRequest.latency: 0 ms] [httpRequest.userAgent: GoogleHC 1.0] /liveness_check
WARNING 2025-07-26T02:47:21.672Z [httpRequest.requestMethod: GET] [httpRequest.status: 499] [httpRequest.latency: 9.999 s] [httpRequest.userAgent: GoogleHC 1.0] / failReason:“null”
WARNING 2025-07-26T02:47:22.815Z [httpRequest.requestMethod: GET] [httpRequest.status: 499] [httpRequest.latency: 9.998 s] [httpRequest.userAgent: GoogleHC 1.0] / failReason:“null”
INFO 2025-07-26T02:47:24.209Z [httpRequest.requestMethod: GET] [httpRequest.status: 200] [httpRequest.responseSize: 2 B] [httpRequest.latency: 0 ms] [httpRequest.userAgent: GoogleHC 1.0] /liveness_check
INFO 2025-07-26T02:47:25.375356Z [httpRequest.requestMethod: GET] [httpRequest.status: 200] [httpRequest.responseSize: 184 B] [httpRequest.latency: 44 ms] [httpRequest.userAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-US) WindowsPowerShell/5.1.26100.4652] https://api-mncpgltytq-uc.a.run.app/health
DEFAULT 2025-07-26T02:47:25.426382Z INFO: 169.254.169.126:19432 - “GET /health HTTP/1.1” 200 OK
WARNING 2025-07-26T02:47:28.187Z [httpRequest.requestMethod: GET] [httpRequest.status: 499] [httpRequest.latency: 9.997 s] [httpRequest.userAgent: GoogleHC 1.0] / failReason:“null”
DEFAULT 2025-07-26T02:47:28.975717067Z Health checks: instance=aef-api-20250721t122808-swn3 start=2025-07-26T02:45:01+00:00 end=2025-07-26T02:45:58+00:00 total=24 unhealthy=0 healthy=24
WARNING 2025-07-26T02:47:31.675Z [httpRequest.requestMethod: GET] [httpRequest.status: 499] [httpRequest.latency: 9.998 s] [httpRequest.userAgent: GoogleHC 1.0] / failReason:“null”
WARNING 2025-07-26T02:47:32.818Z [httpRequest.requestMethod: GET] [httpRequest.status: 499] [httpRequest.latency: 9.997 s] [httpRequest.userAgent: GoogleHC 1.0] / failReason:“null”
DEFAULT 2025-07-26T02:47:35Z Signup error: Traceback (most recent call last):
DEFAULT 2025-07-26T02:47:35Z File “/app/app.py”, line 258, in signup
DEFAULT 2025-07-26T02:47:35Z existing_user = users_collection.find_one({“email”: user_data.email})
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/collection.py”, line 1755, in find_one
DEFAULT 2025-07-26T02:47:35Z for result in cursor.limit(-1):
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/cursor.py”, line 1284, in next
DEFAULT 2025-07-26T02:47:35Z return self.next()
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/cursor.py”, line 1260, in next
DEFAULT 2025-07-26T02:47:35Z if len(self._data) or self._refresh():
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/cursor.py”, line 1208, in _refresh
DEFAULT 2025-07-26T02:47:35Z self._send_message(q)
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/cursor.py”, line 1102, in _send_message
DEFAULT 2025-07-26T02:47:35Z response = client._run_operation(
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/_csot.py”, line 125, in csot_wrapper
DEFAULT 2025-07-26T02:47:35Z return func(self, *args, **kwargs)
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/mongo_client.py”, line 1917, in _run_operation
DEFAULT 2025-07-26T02:47:35Z return self._retryable_read(
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/mongo_client.py”, line 2026, in _retryable_read
DEFAULT 2025-07-26T02:47:35Z return self._retry_internal(
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/_csot.py”, line 125, in csot_wrapper
DEFAULT 2025-07-26T02:47:35Z return func(self, *args, **kwargs)
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/mongo_client.py”, line 1993, in _retry_internal
DEFAULT 2025-07-26T02:47:35Z ).run()
DEFAULT 2025-07-26T02:47:35Z ^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/mongo_client.py”, line 2730, in run
DEFAULT 2025-07-26T02:47:35Z return self._read() if self._is_read else self._write()
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/mongo_client.py”, line 2875, in _read
DEFAULT 2025-07-26T02:47:35Z self._server = self._get_server()
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/mongo_client.py”, line 2823, in _get_server
DEFAULT 2025-07-26T02:47:35Z return self._client._select_server(
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/mongo_client.py”, line 1812, in _select_server
DEFAULT 2025-07-26T02:47:35Z server = topology.select_server(
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^^^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/topology.py”, line 409, in select_server
DEFAULT 2025-07-26T02:47:35Z server = self._select_server(
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/topology.py”, line 387, in _select_server
DEFAULT 2025-07-26T02:47:35Z servers = self.select_servers(
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/topology.py”, line 294, in select_servers
DEFAULT 2025-07-26T02:47:35Z server_descriptions = self._select_servers_loop(
DEFAULT 2025-07-26T02:47:35Z ^^^^^^^^^^^^^^^^^^^^^^^^^^
DEFAULT 2025-07-26T02:47:35Z File “/usr/local/lib/python3.11/site-packages/pymongo/synchronous/topology.py”, line 344, in _select_servers_loop
DEFAULT 2025-07-26T02:47:35Z raise ServerSelectionTimeoutError(
DEFAULT 2025-07-26T02:47:35Z pymongo.errors.ServerSelectionTimeoutError: No replica set members available for replica set name “atlas-c19kxll-shard-0”, Timeout: 30s, Topology Description: <TopologyDescription id: 687e6f3e47bce026b51195af, topology_type: ReplicaSetNoPrimary, servers: >
DEFAULT 2025-07-26T02:47:35Z INFO: 172.17.0.4:34730 - “POST /auth/signup HTTP/1.1” 500 Internal Server Error