Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After I introduced cscore, I threw the following exception #100

Open
q876625596 opened this issue May 31, 2023 · 2 comments
Open

After I introduced cscore, I threw the following exception #100

q876625596 opened this issue May 31, 2023 · 2 comments
Labels
fixedAndNeedsTesting The reported issue was fixed and now needs testing/approval

Comments

@q876625596
Copy link

WebException: Error: NameResolutionFailure
System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) (at :0)
System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) (at :0)
System.Net.WebOperation.Run () (at :0)
System.Net.WebCompletionSource1[T].WaitForCompletion () (at <e6940d8ae2364839bd68ca06089600fc>:0) System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func1[TResult] aborted, System.Threading.CancellationTokenSource cts) (at <e6940d8ae2364839bd68ca06089600fc>:0) System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) (at <e6940d8ae2364839bd68ca06089600fc>:0) System.Threading.Tasks.TaskFactory1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func2[T,TResult] endFunction, System.Action1[T] endAction, System.Threading.Tasks.Task1[TResult] promise, System.Boolean requiresSynchronization) (at <a40b0ad4a868437393ad434631fb6ff1>:0) --- End of stack trace from previous location where exception was thrown --- System.Net.Http.MonoWebRequestHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) (at <1b59c4f9ea544230b97be3f722642171>:0) Rethrow as HttpRequestException: An error occurred while sending the request System.Net.Http.MonoWebRequestHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) (at <1b59c4f9ea544230b97be3f722642171>:0) System.Net.Http.HttpClient.SendAsyncWorker (System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken) (at <1b59c4f9ea544230b97be3f722642171>:0) com.csutil.http.UriRestRequest.SendAsync (System.Net.Http.HttpMethod method) (at Library/PackageCache/com.csutil.cscore@feee7300cd/CsCore/com/csutil/http/UriRestRequest.cs:161) com.csutil.http.UriRestRequest.GetResult[T] () (at Library/PackageCache/com.csutil.cscore@feee7300cd/CsCore/com/csutil/http/UriRestRequest.cs:105) com.csutil.editor.LatestCsCoreVersionChecker.CheckForUpdates (System.Collections.Generic.List1[T] installedPackages, System.String urlToLoadPackageJsonFrom) (at Library/PackageCache/com.csutil.cscore.unity@feee7300cd/CsCoreUnity/com/csutil/editor/compilationTasks/LatestCsCoreVersionChecker.cs:31)
com.csutil.editor.LatestCsCoreVersionChecker.CheckForLatestVersion () (at Library/PackageCache/com.csutil.cscore.unity@feee7300cd/CsCoreUnity/com/csutil/editor/compilationTasks/LatestCsCoreVersionChecker.cs:25)
Rethrow as AggregateException: One or more errors occurred. (An error occurred while sending the request)
UnityEngine.Debug:LogException(Exception, Object)
com.csutil.logging.LogToUnityDebugLog:PrintException(Exception, Object[]) (at Library/PackageCache/com.csutil.cscore.unity@feee7300cd/CsCoreUnity/com/csutil/logging/LogToUnityDebugLog.cs:27)
com.csutil.logging.LogDefaultImpl:LogExeption(Exception, Object[]) (at Library/PackageCache/com.csutil.cscore@feee7300cd/CsCore/com/csutil/logging/LogDefaultImpl.cs:39)
com.csutil.Log:e(Exception, Object[]) (at Library/PackageCache/com.csutil.cscore@feee7300cd/CsCore/com/csutil/logging/Log.cs:37)
com.csutil.<>c:b__6_0(Exception) (at Library/PackageCache/com.csutil.cscore@feee7300cd/CsCore/com/csutil/extensions/TaskExtensions.cs:52)
com.csutil.<>c__DisplayClass5_0`1:b__0(Task) (at Library/PackageCache/com.csutil.cscore@feee7300cd/CsCore/com/csutil/extensions/TaskExtensions.cs:48)
UnityEngine.UnitySynchronizationContext:ExecuteTasks()

@cs-util
Copy link
Collaborator

cs-util commented Jun 1, 2023

Seems like the LatestCsCoreVersionChecker.cs in line 25 cant access the URL https://raw.githubusercontent.com/cs-util-com/cscore/master/CsCore/PlainNetClassLib/src/Plugins/package.json , are you able to open that URL in your browser? Maybe it's blocked in your network. Which Unity version are you on?

@q876625596
Copy link
Author

I can open this website.

Unity version is 2021.3.25

@cs-util cs-util added the fixedAndNeedsTesting The reported issue was fixed and now needs testing/approval label Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixedAndNeedsTesting The reported issue was fixed and now needs testing/approval
Projects
None yet
Development

No branches or pull requests

2 participants