koishijs / novelai-bot

Generate images by NovelAI | 基于 NovelAI 的画图机器人
https://bot.novelai.dev
MIT License
2.49k stars 205 forks source link

Bug: "[object Object]" is not valid JSON #222

Closed idranme closed 9 months ago

idranme commented 10 months ago

Describe the bug

[E] novelai SyntaxError: "[object Object]" is not valid JSON
                            at JSON.parse (<anonymous>)
                            at request (D:\develop\koishi-dev\node_modules\koishi-plugin-novelai\lib\index.js:386:41)
                            at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                            at async iterate (D:\develop\koishi-dev\node_modules\koishi-plugin-novelai\lib\index.js:424:31)
                            at async _Command.<anonymous> (D:\develop\koishi-dev\node_modules\koishi-plugin-novelai\lib\index.js:476:17)
                            at Array.<anonymous> (D:\develop\koishi-dev\node_modules\@koishijs\core\src\command\command.ts:299:14)
                            at _Command.execute (D:\develop\koishi-dev\node_modules\@koishijs\core\src\command\command.ts:315:22)
                            at <anonymous> (D:\develop\koishi-dev\node_modules\@koishijs\core\src\session.ts:397:22)
                            at Proxy.withScope (D:\develop\koishi-dev\node_modules\@koishijs\core\src\session.ts:293:22)
                            at next (D:\develop\koishi-dev\node_modules\@koishijs\core\src\middleware.ts:259:16)

Steps to reproduce

nai girl

Expected behavior

no error

Screenshots

No response

Relevant log output

No response

Launcher

Koishi CLI (koishi start)

Backend

Stable Diffusion WebUI (AUTOMATIC1111)

Versions

Additional context

No response