Skip to content

修复插件商店获取插件信息提示302异常#1904

Merged
HibiKier merged 4 commits into
zhenxun-org:mainfrom
ChangSheng3407:插件商店302
Jun 9, 2025

Hidden character warning

The head ref may contain hidden characters: "\u63d2\u4ef6\u5546\u5e97302"
Merged

修复插件商店获取插件信息提示302异常#1904
HibiKier merged 4 commits into
zhenxun-org:mainfrom
ChangSheng3407:插件商店302

Conversation

@ChangSheng3407

Copy link
Copy Markdown
Contributor

由于调用加速地址的时候状态码为302会被认为正常返回,但是所有的加速地址又没有调用完毕导致的插件商店经常报错302异常

Comment thread zhenxun/utils/http_utils.py Outdated
logger.info(f"开始获取 {url}..")
response = await cls._get_single(url, **kwargs)
if check_status_code and response.status_code != check_status_code:
raise Exception(f"Status code error: {response.status_code} != {check_status_code}")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

格式化一下这里

raise Exception(
    f"Status code error: {response.status_code} != {check_status_code}"
)

@HibiKier HibiKier merged commit 46a652b into zhenxun-org:main Jun 9, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants