Closed DyeLA closed 1 year ago
这很奇怪。
我没有一个有效的novelai账户,所以我不能说这里有什么问题。但如果你能为我们提供更多的信息,将会很有帮助。
检索 envinfo
并发布在这里
这很简单,只要打开你的 小石控制台
,然后点击右下方的状态栏,envinfo
信息就会自动复制到你的剪贴板上。
打开终端,然后获得更多信息
首先,你应该打开小石的终端。然后输入yarn why libsodium-wrappers
(或者yarn list --pattern 'libsodium-wrappers'
如果yarn why
不起作用),然后把输出复制到这里。
登录NovelAI,然后检查你的订阅是否已过期
进入novelai.net,登录后检查你的订阅。
通过www.DeepL.com/Translator(免费版)翻译
我也这个问题
2023-03-20 12:00:16 [E] novelai TypeError: hash_length cannot be null or undefined
at f (/koishi/node_modules/libsodium-wrappers/dist/modules/libsodium-wrappers.js:1:17851)
at m (/koishi/node_modules/libsodium-wrappers/dist/modules/libsodium-wrappers.js:1:17895)
at Xe (/koishi/node_modules/libsodium-wrappers/dist/modules/libsodium-wrappers.js:1:49004)
at calcAccessKey (/koishi/node_modules/koishi-plugin-novelai/lib/utils.js:61:139)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async login (/koishi/node_modules/koishi-plugin-novelai/lib/utils.js:98:18)
at async _Command.
[运行完毕] yarn why libsodium-wrappers [1/4] Why do we have the module "libsodium-wrappers"...? [2/4] Initialising dependency graph... [3/4] Finding dependency... [4/4] Calculating file sizes... info => Found "libsodium-wrappers@0.7.11" info Reasons this module exists
这个得看下你们的配置项了,type 用的哪个?
这个得看下你们的配置项了,type 用的哪个?
使用账号密码登录和授权令牌登录,均为此错误信息。
看起来像是来自libsodium-wrapper
的错误,我们的常量crypto_pwhash_SALTBYTES
在这里使用
是在0.7.9版本后未被定义。
我用下面的代码进行了测试,它在0.7.8版本时输出16
,但在0.7.9、0.7.10和0.7.11版本时未定义
。
const libsodium = require('libsodium-wrappers')
;(async () => {
await libsodium.ready
console.log(libsodium.crypto_pwhash_SALTBYTES)
})()
另一方面,sumo
版本(libsodium-wrappers-sumo
)在每个版本都运行良好,也许我们可以改用sumo
版本,它是用Emscripten编译的WASM。
通过www.DeepL.com/Translator(免费版)翻译
出现同样的错误。请问目前这个bug是否有临时的解决方案?
Describe the bug
沙盒测试输入nai指令有正确回应help列表,但是加上tag会出现未知错误。
Steps to reproduce
已更新koishi到最新的4.11.9,novelAI插件版本为1.17.3,沙盒测试输入nai或其他对应指令有回应help列表。 但是加上tag后沙盒测试显示发生未知错误,中间也没有显示正在作画。
Expected behavior
已经重装novel插件,依然无法解决问题。
Screenshots
image
Relevant log output
Launcher
Koishi Desktop
Backend
NovelAI (帐号密码)
Versions
Additional context
No response