Closed lxfly2000 closed 1 year ago
报错信息 2023-03-07 23:04:16 ERROR asyncio: Task exception was never retrieved future: <Task finished name='Task-55' coro=<handle() done, defined at accesser__init.py:90> exception=LifetimeTimeout('The resolution lifetime expired after 5.155 seconds: Server https://dns.alidns.com/dns-query UDP port 53 answered httpx is not available.; Server https://firefox.cloudflare-dns.com/dns-query UDP port 53 answered httpx is not available.; Server https://185.222.222.222/dns-query UDP port 53 answered httpx is not available.; Server https://45.11.45.11/dns-query UDP port 53 answered httpx is not available.; Server https://dns.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns11.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns10.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns.alidns.com/dns-query UDP port 53 answered httpx is not available.; Server https://firefox.cloudflare-dns.com/dns-query UDP port 53 answered httpx is not available.; Server https://185.222.222.222/dns-query UDP port 53 answered httpx is not available.; Server https://45.11.45.11/dns-query UDP port 53 answered httpx is not available.; Server https://dns.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns11.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns10.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns.alidns.com/dns-query UDP port 53 answered httpx is not available.; Server https://firefox.cloudflare-dns.com/dns-query UDP port 53 answered httpx is not available.; Server https://185.222.222.222/dns-query UDP port 53 answered httpx is not available.; Server https://45.11.45.11/dns-query UDP port 53 answered httpx is not available.; Server https://dns.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns11.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns10.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns.alidns.com/dns-query UDP port 53 answered httpx is not available.; Server https://firefox.cloudflare-dns.com/dns-query UDP port 53 answered httpx is not available.; Server https://185.222.222.222/dns-query UDP port 53 answered httpx is not available.; Server https://45.11.45.11/dns-query UDP port 53 answered httpx is not available.; Server https://dns.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns11.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns10.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns.alidns.com/dns-query UDP port 53 answered httpx is not available.; Server https://firefox.cloudflare-dns.com/dns-query UDP port 53 answered httpx is not available.; Server https://185.222.222.222/dns-query UDP port 53 answered httpx is not available.; Server https://45.11.45.11/dns-query UDP port 53 answered httpx is not available.; Server https://dns.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns11.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns10.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns.alidns.com/dns-query UDP port 53 answered httpx is not available.; Server https://firefox.cloudflare-dns.com/dns-query UDP port 53 answered httpx is not available.; Server https://185.222.222.222/dns-query UDP port 53 answered httpx is not available.; Server https://45.11.45.11/dns-query UDP port 53 answered httpx is not available.; Server https://dns.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns11.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns10.quad9.net/dns-query UDP port 53 answered httpx is not available.')> Traceback (most recent call last): File "accesser\init.py", line 102, in handle File "accesser\init__.py", line 161, in DNSquery File "dns\asyncresolver.py", line 89, in resolve File "dns\resolver.py", line 988, in _compute_timeout dns.resolver.LifetimeTimeout: The resolution lifetime expired after 5.155 seconds: Server https://dns.alidns.com/dns-query UDP port 53 answered httpx is not available.; Server https://firefox.cloudflare-dns.com/dns-query UDP port 53 answered httpx is not available.; Server https://185.222.222.222/dns-query UDP port 53 answered httpx is not available.; Server https://45.11.45.11/dns-query UDP port 53 answered httpx is not available.; Server https://dns.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns11.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns10.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns.alidns.com/dns-query UDP port 53 answered httpx is not available.; Server https://firefox.cloudflare-dns.com/dns-query UDP port 53 answered httpx is not available.; Server https://185.222.222.222/dns-query UDP port 53 answered httpx is not available.; Server https://45.11.45.11/dns-query UDP port 53 answered httpx is not available.; Server https://dns.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns11.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns10.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns.alidns.com/dns-query UDP port 53 answered httpx is not available.; Server https://firefox.cloudflare-dns.com/dns-query UDP port 53 answered httpx is not available.; Server https://185.222.222.222/dns-query UDP port 53 answered httpx is not available.; Server https://45.11.45.11/dns-query UDP port 53 answered httpx is not available.; Server https://dns.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns11.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns10.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns.alidns.com/dns-query UDP port 53 answered httpx is not available.; Server https://firefox.cloudflare-dns.com/dns-query UDP port 53 answered httpx is not available.; Server https://185.222.222.222/dns-query UDP port 53 answered httpx is not available.; Server https://45.11.45.11/dns-query UDP port 53 answered httpx is not available.; Server https://dns.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns11.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns10.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns.alidns.com/dns-query UDP port 53 answered httpx is not available.; Server https://firefox.cloudflare-dns.com/dns-query UDP port 53 answered httpx is not available.; Server https://185.222.222.222/dns-query UDP port 53 answered httpx is not available.; Server https://45.11.45.11/dns-query UDP port 53 answered httpx is not available.; Server https://dns.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns11.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns10.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns.alidns.com/dns-query UDP port 53 answered httpx is not available.; Server https://firefox.cloudflare-dns.com/dns-query UDP port 53 answered httpx is not available.; Server https://185.222.222.222/dns-query UDP port 53 answered httpx is not available.; Server https://45.11.45.11/dns-query UDP port 53 answered httpx is not available.; Server https://dns.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns11.quad9.net/dns-query UDP port 53 answered httpx is not available.; Server https://dns10.quad9.net/dns-query UDP port 53 answered httpx is not available.
那就是没装httpx
pip install httpx[http2]
感谢,已修复
今天又出现了这个问题,但是报错变了,HTTPX的所有组件都已安装,希望Reopen这个问题
2024-04-20 12:07:07 ERROR asyncio: Task exception was never retrieved
future: <Task finished name='Task-75' coro=<handle() done, defined at accesser\__init__.py:96> exception=LifetimeTimeout('The resolution lifetime expired after 5.136 seconds: Server https://185.222.222.222/dns-query answered DNS over HTTPS (DOH) was requested but the httpx module is not\n available.; Server https://45.11.45.11/dns-query answered DNS over HTTPS (DOH) was requested but the httpx module is not\n available.; Server https://149.112.112.112/dns-query answered DNS over HTTPS (DOH) was requested but the httpx module is not\n available.; Server https://149.112.112.10/dns-query answered DNS over HTTPS (DOH) was requested but the httpx module is not\n available.; Server DoT:149.112.112.112@853 answered The DNS operation timed out after 2.000 seconds; Server DoT:149.112.112.10@853 answered The DNS operation timed out after 2.000 seconds; Server DoT:185.222.222.222@853 answered The DNS operation timed out after 0.972 seconds')>
Traceback (most recent call last):
File "accesser\__init__.py", line 108, in handle
File "accesser\__init__.py", line 183, in DNSquery
File "dns\asyncresolver.py", line 89, in resolve
File "dns\resolver.py", line 1075, in _compute_timeout
dns.resolver.LifetimeTimeout: The resolution lifetime expired after 5.136 seconds: Server https://185.222.222.222/dns-query answered DNS over HTTPS (DOH) was requested but the httpx module is not
available.; Server https://45.11.45.11/dns-query answered DNS over HTTPS (DOH) was requested but the httpx module is not
available.; Server https://149.112.112.112/dns-query answered DNS over HTTPS (DOH) was requested but the httpx module is not
available.; Server https://149.112.112.10/dns-query answered DNS over HTTPS (DOH) was requested but the httpx module is not
available.; Server DoT:149.112.112.112@853 answered The DNS operation timed out after 2.000 seconds; Server DoT:149.112.112.10@853 answered The DNS operation timed out after 2.000 seconds; Server DoT:185.222.222.222@853 answered The DNS operation timed out after 0.972 seconds
已经解决了,pip升级一下httpx的版本就好了
Win10 Python 3.11.2