Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同步CookieCloud站点失败 #2722

Open
4 tasks done
hutao521 opened this issue Sep 16, 2024 · 0 comments
Open
4 tasks done

同步CookieCloud站点失败 #2722

hutao521 opened this issue Sep 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hutao521
Copy link

确认

  • 我的版本是最新版本,我的版本号与 version 相同。
  • 我已经 issue 中搜索过,确认我的问题没有被提出过。
  • 我已经 Telegram频道 中搜索过,确认我的问题没有被提出过。
  • 我已经修改标题,将标题中的 描述 替换为我遇到的问题。

当前程序版本

v1.9.16

运行环境

Docker

问题类型

主程序运行问题

问题描述

同步cookiecloud站点失败,无论是使用自建服务器还是mp内置服务器都报这个错误

【ERROR】2024-09-16 11:02:52,999 - scheduler.py - 定时任务 同步CookieCloud站点 执行失败:Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration. - Traceback (most recent call last):

报错时日志:
【INFO】2024-09-16 11:02:53,002 - command.py - 处理事件:system.error - []

ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.
File "src/lxml/parser.pxi", line 1911, in lxml.etree._parseMemoryDocument
File "src/lxml/etree.pyx", line 3212, in lxml.etree.HTML
^^^^^^^^^^^^^^^^^^^^^
html = etree.HTML(html_text)
File "/app/app/utils/site.py", line 13, in is_logged_in
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
if not indexer.get("public") and not SiteUtils.is_logged_in(res.text):
File "/app/app/chain/site.py", line 267, in sync_cookies
job["func"](*args, **kwargs)
File "/app/app/scheduler.py", line 374, in start
【ERROR】2024-09-16 11:02:52,999 - scheduler.py - 定时任务 同步CookieCloud站点 执行失败:Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration. - Traceback (most recent call last):
【INFO】2024-09-16 11:02:52,285 - site.py - 站点【咖啡】连通性正常,不同步CookieCloud数据
【WARNING】2024-09-16 11:02:51,431 - site.py - 获取RSS链接失败:https://www.pttime.org/
【INFO】2024-09-16 11:02:50,363 - site.py - 站点【PT时间】连通性正常,不同步CookieCloud数据
【INFO】2024-09-16 11:02:48,349 - site.py - 站点【动漫花园】连通性正常,不同步CookieCloud数据
【INFO】2024-09-16 11:02:46,548 - site.py - 站点【MiKan】连通性正常,不同步CookieCloud数据
【INFO】2024-09-16 11:02:45,806 - site.py - 站点【Nyaa】连通性正常,不同步CookieCloud数据
【INFO】2024-09-16 11:02:45,064 - site.py - 开始同步CookieCloud站点 ...

发生问题时系统日志和配置文件

No response

@hutao521 hutao521 added the bug Something isn't working label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant