api接口问题 #10018
Unanswered
fengbaobao9527
asked this question in
Q&A
api接口问题
#10018
Replies: 1 comment 2 replies
-
|
请提供完整复现步骤,包括具体参数和传入方式,否则没有办法判断。 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
前置条件
系统信息
环境信息
使用的哪种方式运行?
Docker
发生了什么?
在 Halo 2.24.2 版本中,通过 API 调用
POST /apis/api.console.halo.run/v1alpha1/posts创建文章时返回 500 错误。复现步骤
相关日志输出
附加信息
问题描述
在 Halo 2.24.2 版本中,通过 API 调用
POST /apis/api.console.halo.run/v1alpha1/posts创建文章时返回 500 错误。错误信息
java.lang.NullPointerException: Cannot invoke "run.halo.app.core.extension.content.Post.getSpec()" because "post" is null
at run.halo.app.content.impl.PostServiceImpl.lambda$draftPost$9(PostServiceImpl.java:200)
环境信息
复现步骤
补充
Beta Was this translation helpful? Give feedback.
All reactions