Youmiel / MsTtsForBiliLiveDm

为 RE-TTSCat 编写的自定义 TTS 引擎,提供简单的请求 API
MIT License
14 stars 0 forks source link

报错 System.Net.WebSockets.WebSocketException: Unable to connect to the remote server #1

Closed tzdy1993 closed 1 year ago

tzdy1993 commented 1 year ago

15:17:44 : MsTtsPlugin System.AggregateException: One or more errors occurred. ---> System.Net.WebSockets.WebSocketException: Unable to connect to the remote server ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream. at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult) at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.WebSockets.ClientWebSocket.d21.MoveNext() --- End of inner exception stack trace --- at System.Net.WebSockets.ClientWebSocket.d21.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MsTtsForBiliLiveDm.MsTts.MsTtsGetter.d18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MsTtsForBiliLiveDm.MsTts.MsTtsGetter.d25.MoveNext() --- 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 MsTtsForBiliLiveDm.MsTts.MsTtsGetter.GetTtsAudio(String ttsText) at MsTtsForBiliLiveDm.HttpHandler.TtsHandler.HandleTtsRequest(HttpListenerRequest request, HttpListenerResponse response) at MsTtsForBiliDanmaku.HttpHandler.BaseHttpHandler.Handle(HttpListenerContext context) at MsTtsForBiliDanmaku.HttpHandler.BaseHttpHandler.g__ContextGetEnd|23_0(IAsyncResult asyncResult) ---> (Inner Exception #0) System.Net.WebSockets.WebSocketException (0x80004005): Unable to connect to the remote server ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream. at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult) at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.WebSockets.ClientWebSocket.d21.MoveNext() at System.Net.WebSockets.ClientWebSocket.d21.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MsTtsForBiliLiveDm.MsTts.MsTtsGetter.d18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MsTtsForBiliLiveDm.MsTts.MsTtsGetter.d25.MoveNext()<---

tzdy1993 commented 1 year ago

补充说明:某些弹幕发出来后会弹出这个报错同时不会读出来

Youmiel commented 1 year ago

有空就修(:з)∠)

Youmiel commented 1 year ago

这是因为没连上微软的API报的错,已修复:https://github.com/Youmiel/MsTtsForBiliLiveDm/releases/tag/v1.1.1