Replit db error

Question:
I get a weird error, can anyone explain?
Repl link:
Its a team repl

Traceback (most recent call last):
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/urllib3/connection.py", line 414, in connect
    self.sock = ssl_wrap_socket(
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "/nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/ssl.py", line 1071, in _create
    self.do_handshake()
  File "/nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='kv.replit.com', port=443): Max retries exceeded with url: /v0/eyJhbGciOiJIUzUxMiIsImlzcyI6ImNvbm1hbiIsImtpZCI6InByb2Q6MSIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJjb25tYW4iLCJleHAiOjE2ODQ2ODUwMTMsImlhdCI6MTY4NDU3MzQxMywiZGF0YWJhc2VfaWQiOiI3NmUzMjNmNi1iZDYxLTRlOTYtOGY2OC0wODZiNzc3ZTNmNjEiLCJ1c2VyIjoiU2hhcmtzU3R1ZGlvcyIsInNsdWciOiJTaGFyazMifQ.YPoWoVu26TkisYkrBcOE4lvCvzT3hINcI1pQjVQ5z4Z1uuKv0_JTcD8OcRSNLk3bQYLIF2RA8C8-ig_YYqjaZA (Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:997)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 28, in <module>
    db["antiswear"] = True
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/replit/database/database.py", line 491, in __setitem__
    self.set(key, value)
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/replit/database/database.py", line 500, in set
    self.set_raw(key, _dumps(value))
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/replit/database/database.py", line 509, in set_raw
    self.set_bulk_raw({key: value})
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/replit/database/database.py", line 526, in set_bulk_raw
    r = self.sess.post(self.db_url, data=values)
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/requests/sessions.py", line 635, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/home/runner/Shark3/venv/lib/python3.10/site-packages/requests/adapters.py", line 563, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='kv.replit.com', port=443): Max retries exceeded with url: /v0/eyJhbGciOiJIUzUxMiIsImlzcyI6ImNvbm1hbiIsImtpZCI6InByb2Q6MSIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJjb25tYW4iLCJleHAiOjE2ODQ2ODUwMTMsImlhdCI6MTY4NDU3MzQxMywiZGF0YWJhc2VfaWQiOiI3NmUzMjNmNi1iZDYxLTRlOTYtOGY2OC0wODZiNzc3ZTNmNjEiLCJ1c2VyIjoiU2hhcmtzU3R1ZGlvcyIsInNsdWciOiJTaGFyazMifQ.YPoWoVu26TkisYkrBcOE4lvCvzT3hINcI1pQjVQ5z4Z1uuKv0_JTcD8OcRSNLk3bQYLIF2RA8C8-ig_YYqjaZA (Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:997)')))
 

Hey @HamzaM15 welcome to the forums!

Could you please provide a link to your Repl? It would make it easier to find what your problem is. Hope you have a great day :grinning:!

I belive that ReplDB is down right, now please look at >>> ReplDB throwing SSL error

Thank you for flagging, we are aware of this: https://status.replit.com/notices/umuzli4sxjrcawve-replit-database-is-down

2 Likes

I got the same error while querying the database. Everything was fine an hour ago.

1 Like