Skip to content

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

@Vex6611

Description

@Vex6611

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

附加截图

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions