【TheresaBot】Pixiv日榜 涩图推送 搜索原图 词云 谁是卧底 Web界面
-
安的是安装部署页面里的8.0.31
-
2023-11-26 19:32:46,969 FATAL - 连接到mirai-console失败
System.Net.WebSockets.WebSocketException (0x80004005): The server returned status code '404' when status code '101' was expected.
at System.Net.WebSockets.WebSocketHandle.ConnectAsync(Uri uri, CancellationToken cancellationToken, ClientWebSocketOptions options)
at System.Net.WebSockets.ClientWebSocket.ConnectAsyncCore(Uri uri, CancellationToken cancellationToken)
at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.StartReceiveMessageLoopAsync(MiraiHttpSessionOptions options, InternalSessionInfo session, CancellationToken connectToken, CancellationToken token)
at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.ConnectAsync(Int64 qqNumber, Boolean listenCommand, CancellationToken token)
at TheresaBot.MiraiHttpApi.Helper.MiraiHelper.ConnectMirai()
2023-11-26 19:32:46,987 FATAL - 启动异常
System.AggregateException: One or more errors occurred. (The server returned status code '404' when status code '101' was expected.)
---> System.Net.WebSockets.WebSocketException (0x80004005): The server returned status code '404' when status code '101' was expected.
at System.Net.WebSockets.WebSocketHandle.ConnectAsync(Uri uri, CancellationToken cancellationToken, ClientWebSocketOptions options)
at System.Net.WebSockets.ClientWebSocket.ConnectAsyncCore(Uri uri, CancellationToken cancellationToken)
at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.StartReceiveMessageLoopAsync(MiraiHttpSessionOptions options, InternalSessionInfo session, CancellationToken connectToken, CancellationToken token)
at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.ConnectAsync(Int64 qqNumber, Boolean listenCommand, CancellationToken token)
at TheresaBot.MiraiHttpApi.Helper.MiraiHelper.ConnectMirai()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at TheresaBot.MiraiHttpApi.Startup.ConfigureServices(IServiceCollection services)
按 Enter 键继续...:
链接不到mirai -
2024-04-09 19:49:05,724 FATAL - 连接到mirai-console失败
System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.JsonDocument.Parse(ReadOnlySpan
1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter) at System.Text.Json.JsonDocument.ParseAsyncCore(Stream utf8Json, JsonDocumentOptions options, CancellationToken cancellationToken) at Mirai.CSharp.HttpApi.Extensions.HttpClientExtensions.GetJsonAsync(Task
1 responseTask, JsonDocumentOptions options, CancellationToken token)
at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.GetVersionAsync(HttpClient client, MiraiHttpSessionOptions options, CancellationToken token)
at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.ConnectAsync(Int64 qqNumber, Boolean listenCommand, CancellationToken token)
at TheresaBot.MiraiHttpApi.Helper.MiraiHelper.ConnectMirai()
2024-04-09 19:49:05,734 FATAL - 启动异常
System.AggregateException: One or more errors occurred. (The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.)
---> System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.JsonDocument.Parse(ReadOnlySpan
1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter) at System.Text.Json.JsonDocument.ParseAsyncCore(Stream utf8Json, JsonDocumentOptions options, CancellationToken cancellationToken) at Mirai.CSharp.HttpApi.Extensions.HttpClientExtensions.GetJsonAsync(Task
1 responseTask, JsonDocumentOptions options, CancellationToken token)
at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.GetVersionAsync(HttpClient client, MiraiHttpSessionOptions options, CancellationToken token)
at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.ConnectAsync(Int64 qqNumber, Boolean listenCommand, CancellationToken token)
at TheresaBot.MiraiHttpApi.Helper.MiraiHelper.ConnectMirai()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at TheresaBot.MiraiHttpApi.Startup.ConfigureServices(IServiceCollection services) -
@Viomeat
按照这个官方的模板修改一下mirai-http-api的模板看看
https://github.com/project-mirai/mirai-api-http -
我mirai-http-api开启singleMode的话会提示找不到文件,singleMode: false之后就能用了
-
@wahaha216 检查下配置文件看看qq号有没有填错
-
@Hamster 对了一遍,botQQ是机器人的QQ没错。
在我把mirai-api-http的singleMode改成false后,是能正常使用的,在此基础上,我只将singleMode改成true,就报错了。不知道是不是不支持singleModemirai是overflow快速开始中的方法五,使用已修改的MCL,mirai-http-api版本是2.9.1。
2024-04-26 19:39:25,606 [.NET TP Worker] FATAL [(null)] - 连接到mirai-console失败 System.IO.FileNotFoundException: 指定的文件不存在。 at Mirai.CSharp.HttpApi.Extensions.ApiResponseExtensions.AsApiRespAsync(Task`1 responseTask, CancellationToken token) at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.ConnectAsync(Int64 qqNumber, Boolean listenCommand, CancellationToken token) at TheresaBot.MiraiHttpApi.Helper.MiraiHelper.ConnectMirai() 2024-04-26 19:39:25,610 [1] FATAL [(null)] - 启动异常 System.AggregateException: One or more errors occurred. (指定的文件不存在。) ---> System.IO.FileNotFoundException: 指定的文件不存在。 at Mirai.CSharp.HttpApi.Extensions.ApiResponseExtensions.AsApiRespAsync(Task`1 responseTask, CancellationToken token) at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.ConnectAsync(Int64 qqNumber, Boolean listenCommand, CancellationToken token) at TheresaBot.MiraiHttpApi.Helper.MiraiHelper.ConnectMirai() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at TheresaBot.MiraiHttpApi.Startup.ConfigureServices(IServiceCollection services)
-
@wahaha216 感谢,我整了半天发现也是这个问题
-
请问下词云图片被吞是什么原因?log发送了很长一串字符,
Theresa3rd-Bot\BotImg\download\BotDownload\WordCloud下有生成的图片,是太大了?接近400kb
2024-05-03 09:37:45 V/Bot.1123278281: Group(330723845) <- [mirai:at:1693679117] 正在生成词云,需要亿点时间...
2024-05-03 09:37:58 V/Bot.1123278281: Group(330723845) <- [mirai:quote:[mirai:source:ids=[2083929288], internalIds=[2083929288], from group 1693679117 to 330723845 at 1714700], content=#昨日词云][mirai:at:1693679117] 昨日词云如下,统计时间段为:2024-05-02 00:00:00 至 2024-05-02 23:59:59
[overflow:image:!base64:///9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA -
@duoxini 我看了下其他插件发送图片成功是这样的
2024-05-03 10:00:04 V/Bot.1123278281: Group(650538323) <- 早上好呀, 这是今天的新闻速报
q(≧▽≦q)
2024-05-03 10:00:05 V/Bot.1123278281: Group(330723845) <- [overflow:image:base64://iVBORw0KGgoAAAANSUhEUgA... (png, about 905.54 KB)]...这里直接省略了,而Theresa3rd-Bot是完整的发出了
-
@duoxini 除了词云其他图片能正常发送吗
-
我自己一直在用qsign+mirai,overflow还没做过测试,可能有些地方没适配好
-
@Hamster 其他的也不行,跟上面一样返回的超长字符串
-
@Hamster 这样,qsign我一上去就冻结,只能用overflow了
-
@wahaha216 @duoxini 可以直接运行TheresaBot.GoCqHttp.dll连到NTQQ上,因为这个库是Onebot协议的,NTQQ的正向webSocket端口默认是3001,在配置文件里把
GoCqHttp.port
改成3001就行 -
@wahaha216 singleMode的问题我就不研究了,因为我现在都搞不清是哪边出的问题