hanmin0822 / MisakaTranslator

御坂翻译器—Galgame/文字游戏/漫画多语种实时机翻工具
GNU General Public License v3.0
4.8k stars 427 forks source link

第一次使用翻译没问题,第2次就不能用了,报错及不能翻译 #336

Open Vex6611 opened 2 months ago

Vex6611 commented 2 months ago

2024-05-01 10-09-43.txt

关于哪一项功能

问题描述

应用版本

系统信息

错误信息

2024-05-01 10-09-04.txt 2024-05-01 00-52-12.txt 2024-05-01 10-09-43.txt

==============System Info================ System:Microsoft Windows NT 10.0.22631.0 CurrentTime:01/05/2024 00:52 dotNetVersion:4.0.30319.42000 MisakaTranslatorVersion:2.12.2.0 ==============Exception Info================ ExceptionType:Task Thread ExceptionName:System.AggregateException ExceptionSource: ExceptionMessage:A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ExceptionStackTrace: InnerExceptionStackTrace:System.NotSupportedException: The ServicePointManager does not support proxies with the https scheme. at System.Net.ServicePointManager.FindServicePointHelper(Uri address, Boolean isProxyServicePoint) at System.Net.ServicePointManager.FindServicePoint(Uri address, IWebProxy proxy, ProxyChain& chain, HttpAbortDelegate& abortDelegate, Int32& abortState) at System.Net.HttpWebRequest.FindServicePoint(Boolean forceFind) at System.Net.HttpWebRequest.set_InternalProxy(IWebProxy value) at System.Net.HttpWebRequest.set_Proxy(IWebProxy value) at System.Net.Http.HttpClientHandler.SetDefaultOptions(HttpWebRequest webRequest) at System.Net.Http.HttpClientHandler.CreateAndPrepareWebRequest(HttpRequestMessage request) at System.Net.Http.HttpClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at TranslatorLibrary.GoogleCNTranslator.<TranslateAsync>d__3.MoveNext() in D:\a\MisakaTranslator\MisakaTranslator\TranslatorLibrary\GoogleCNTranslator.cs:line 50 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at MisakaTranslator_WPF.TranslateWindow.d__33.MoveNext() in D:\a\MisakaTranslator\MisakaTranslator\MisakaTranslator-WPF\TranslateWindow.xaml.cs:line 586

==============System Info================ System:Microsoft Windows NT 10.0.22631.0 CurrentTime:01/05/2024 10:09 dotNetVersion:4.0.30319.42000 MisakaTranslatorVersion:2.12.2.0 ==============Exception Info================ ExceptionType:Task Thread ExceptionName:System.AggregateException ExceptionSource: ExceptionMessage:A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ExceptionStackTrace: InnerExceptionStackTrace:System.NotSupportedException: The ServicePointManager does not support proxies with the https scheme. at System.Net.ServicePointManager.FindServicePointHelper(Uri address, Boolean isProxyServicePoint) at System.Net.ServicePointManager.FindServicePoint(Uri address, IWebProxy proxy, ProxyChain& chain, HttpAbortDelegate& abortDelegate, Int32& abortState) at System.Net.HttpWebRequest.FindServicePoint(Boolean forceFind) at System.Net.HttpWebRequest.set_InternalProxy(IWebProxy value) at System.Net.HttpWebRequest.set_Proxy(IWebProxy value) at System.Net.Http.HttpClientHandler.SetDefaultOptions(HttpWebRequest webRequest) at System.Net.Http.HttpClientHandler.CreateAndPrepareWebRequest(HttpRequestMessage request) at System.Net.Http.HttpClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at TranslatorLibrary.GoogleCNTranslator.<TranslateAsync>d__3.MoveNext() in D:\a\MisakaTranslator\MisakaTranslator\TranslatorLibrary\GoogleCNTranslator.cs:line 50 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at MisakaTranslator_WPF.TranslateWindow.d__33.MoveNext() in D:\a\MisakaTranslator\MisakaTranslator\MisakaTranslator-WPF\TranslateWindow.xaml.cs:line 601

==============System Info================ System:Microsoft Windows NT 10.0.22631.0 CurrentTime:01/05/2024 10:09 dotNetVersion:4.0.30319.42000 MisakaTranslatorVersion:2.12.2.0 ==============Exception Info================ ExceptionType:Task Thread ExceptionName:System.AggregateException ExceptionSource: ExceptionMessage:A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ExceptionStackTrace: InnerExceptionStackTrace:System.NotSupportedException: The ServicePointManager does not support proxies with the https scheme. at System.Net.ServicePointManager.FindServicePointHelper(Uri address, Boolean isProxyServicePoint) at System.Net.ServicePointManager.FindServicePoint(Uri address, IWebProxy proxy, ProxyChain& chain, HttpAbortDelegate& abortDelegate, Int32& abortState) at System.Net.HttpWebRequest.FindServicePoint(Boolean forceFind) at System.Net.HttpWebRequest.set_InternalProxy(IWebProxy value) at System.Net.HttpWebRequest.set_Proxy(IWebProxy value) at System.Net.Http.HttpClientHandler.SetDefaultOptions(HttpWebRequest webRequest) at System.Net.Http.HttpClientHandler.CreateAndPrepareWebRequest(HttpRequestMessage request) at System.Net.Http.HttpClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at TranslatorLibrary.GoogleCNTranslator.<TranslateAsync>d__3.MoveNext() in D:\a\MisakaTranslator\MisakaTranslator\TranslatorLibrary\GoogleCNTranslator.cs:line 50 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at MisakaTranslator_WPF.TranslateWindow.d__33.MoveNext() in D:\a\MisakaTranslator\MisakaTranslator\MisakaTranslator-WPF\TranslateWindow.xaml.cs:line 586

附加截图