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

求教:halo 的 API 地址填写的和博客地址一样,请求报错 #1394

Closed
idea-zone opened this issue Oct 23, 2024 · 9 comments
Closed

Comments

@idea-zone
Copy link

idea-zone commented Oct 23, 2024

image

halo 版本 2.20 LTS

@idea-zone idea-zone changed the title 求教:halo 的 API 地址怎么找?填什么? 求教:halo 的 API 地址填写的和博客地址一样,请求报错 Oct 23, 2024
@jayvzh
Copy link

jayvzh commented Oct 24, 2024

同样问题,新版本出现的问题吗,以前成功过。

@SenLief
Copy link

SenLief commented Nov 1, 2024

同样的问题有解决的方案吗?

@LiangZiSheng
Copy link

t我这里也同样有这个问题,之前使用过没问题

@terwer
Copy link
Owner

terwer commented Nov 7, 2024

halo:2.9 没这个问题。我试试你们的版本。

@LiangZiSheng
Copy link

我这里使用的版本是v2.20.8

@terwer
Copy link
Owner

terwer commented Nov 7, 2024

2.20.8确实有这个问题,现在修复。预计今天之内发布。

@terwer
Copy link
Owner

terwer commented Nov 7, 2024

问题已定位修复,原因,官方改了地址:
image

@terwer
Copy link
Owner

terwer commented Nov 7, 2024

重大调整,由于 Halo 2.20+ 修改了 API 策略,V2.20+ 此平台通过旧的 API已经无法使用,将会新增平台 「Halo网页版」。「Halo网页版」支持 V2.20+,需要导入并重新配置。
如仍需使用此平台,请降级到 Halo 2.9。

V2.20+新平台添加指南:
通用设置->发布设置->插件商店->自定义 HTTP 协议->Halo 网页版

1、添加平台

image

2、设置主页和域名。非常重要。错误将会导致后续鉴权失败

我这里是 http 就写 http,你的如果是 https 的就写 https。看实际地址。

image

image

3、开始授权

image

注:如果上面的地址填写错误可禁用->删除->然后重新导入再填写。

image

image

image

登录完成点击 xx 关闭即可。

接下来点击验证

image

image

出现这样就完成了。接下来发布就可以了。完结撒花🎉

注意:如果过期了。就点击再次授权,重新登录,重复上面步骤即可。

@terwer terwer pinned this issue Nov 7, 2024
terwer added a commit that referenced this issue Nov 7, 2024
terwer added a commit that referenced this issue Nov 7, 2024
terwer added a commit that referenced this issue Nov 7, 2024
terwer added a commit that referenced this issue Nov 7, 2024
@terwer
Copy link
Owner

terwer commented Nov 7, 2024

fixed in V1.22.0

注意事项:#1447 (comment)

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

No branches or pull requests

7 participants
@terwer @jayvzh @LiangZiSheng @SenLief @idea-zone and others