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站点 执行失败,报Python的错误:AttributeError: 'str' object has no attribute 'get' #3779

Open
4 tasks done
Chillbon opened this issue Jan 21, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Chillbon
Copy link

确认

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

当前程序版本

v2.2.3

运行环境

Docker

问题类型

主程序运行问题

问题描述

错误日志:

【ERROR】2025-01-21 20:45:09,747 - scheduler.py - 定时任务 同步CookieCloud站点 执行失败:'str' object has no attribute 'get' - Traceback (most recent call last):
File "/app/app/scheduler.py", line 357, in start
job["func"](*args, **kwargs)
File "/app/app/chain/site.py", line 285, in sync_cookies
cookies, msg = self.cookiecloud.download()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/app/helper/cookiecloud.py", line 84, in download
domain_key = StringUtils.get_url_domain(cookie.get("domain"))
^^^^^^^^^^
AttributeError: 'str' object has no attribute 'get'

群晖环境python版本:
Python 3.8.15

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

@Chillbon Chillbon added the bug Something isn't working label Jan 21, 2025
@KevinZjYang
Copy link

定时任务 同步CookieCloud站点 执行失败:Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration. - Traceback (most recent call last):

报错很多天了,我还以为是CookieCloud服务器的问题,重新部署了也还是报错。

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

2 participants