Skip to content

在Spring boot搭建机器人无法启动 #170

Answered by ForteScarlet
Ligzsir asked this question in Q&A
Discussion options

You must be logged in to vote

Caused by: kotlinx.serialization.MissingFieldException: Field 'ticket' is required for type with serial name 'love.forte.simbot.component.kook.bot.KookBotVerifyInfoConfiguration', but it was missing

看起来bot的配置文件中缺失了 ticket 属性。

经过确认,手册中的配置示例有一部分忘记修改了,目前版本 clientIdtoken 属性需要包裹在 ticket 属性中:

省略其他属性

{
  "ticket": {
    "clientId": "...",
    "token": "..."
   }
}

手册中的内容随后会更新。

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@ForteScarlet
Comment options

@Ligzsir
Comment options

@ForteScarlet
Comment options

Answer selected by ForteScarlet
@Ligzsir
Comment options

@ForteScarlet
Comment options

@Ligzsir
Comment options

@ForteScarlet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
文档 Improvements or additions to documentation 组件:KOOK 与Kook组件相关的内容
2 participants