Skip to content

SMTP fails #83

@CHEN1594

Description

@CHEN1594

Rendering Email: 0%| | 0/5 [00:00<?, ?it/s]
Rendering Email: 20%|██ | 1/5 [00:55<03:43, 55.93s/it]
Rendering Email: 40%|████ | 2/5 [02:16<03:31, 70.46s/it]
2025-07-20 10:52:32.533 | DEBUG | paper:code_url:49 - Error when searching 2507.13353: Expecting value: line 1 column 1 (char 0)
Rendering Email: 60%|██████ | 3/5 [03:41<02:34, 77.12s/it]
Rendering Email: 80%|████████ | 4/5 [05:43<01:34, 94.67s/it]
Rendering Email: 100%|██████████| 5/5 [07:44<00:00, 104.13s/it]
Rendering Email: 100%|██████████| 5/5 [07:44<00:00, 92.82s/it]
2025-07-20 10:54:33.419 | INFO | main::183 - Sending email...
2025-07-20 10:54:35.374 | WARNING | construct_email:send_email:158 - Failed to use TLS. [Errno -3] Temporary failure in name resolution
2025-07-20 10:54:35.374 | WARNING | construct_email:send_email:159 - Try to use SSL.
Traceback (most recent call last):
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/construct_email.py", line 155, in send_email
server = smtplib.SMTP(smtp_server, smtp_port)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python3.11/smtplib.py", line 255, in init
(code, msg) = self.connect(host, port)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python3.11/smtplib.py", line 341, in connect
self.sock = self._get_socket(host, port, self.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python3.11/smtplib.py", line 312, in _get_socket
return socket.create_connection((host, port), timeout,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python3.11/socket.py", line 839, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python3.11/socket.py", line 974, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/main.py", line 184, in
send_email(args.sender, args.receiver, args.sender_password, args.smtp_server, args.smtp_port, html)
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/construct_email.py", line 160, in send_email
server = smtplib.SMTP_SSL(smtp_server, smtp_port)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python3.11/smtplib.py", line 1050, in init
SMTP.init(self, host, port, local_hostname, timeout,
File "/home/runner/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python3.11/smtplib.py", line 255, in init
(code, msg) = self.connect(host, port)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python3.11/smtplib.py", line 341, in connect
self.sock = self._get_socket(host, port, self.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python3.11/smtplib.py", line 1056, in _get_socket
new_socket = super()._get_socket(host, port, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python3.11/smtplib.py", line 312, in _get_socket
return socket.create_connection((host, port), timeout,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python3.11/socket.py", line 839, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python3.11/socket.py", line 974, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Temporary failure in name resolution
Error: Process completed with exit code 1.

I have already set the following secrets:

SMTP_SERVER=smtp.qq.com

SMTP_PORT=465

But it still fails. Not sure what went wrong. Please help check, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions