【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)