Closed prpjzz closed 1 year ago
device_id: FA1D62A0F8737EF738814EF8F70B6208
Exception Data:
----------------------------------------
System.InvalidOperationException: A suitable constructor for type 'Snap.Hutao.Web.Hoyolab.Passport.PassportClientOversea' could not be located. Ensure the type is concrete and all parameters of a public constructor are either registered as services or passed as arguments. Also ensure no extraneous arguments are provided.
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.FindApplicableConstructor(Type instanceType, Type[] argumentTypes, ConstructorInfo& matchingConstructor, Nullable`1[]& matchingParameterMap)
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateFactory(Type instanceType, Type[] argumentTypes)
at Microsoft.Extensions.Http.DefaultTypedHttpClientFactory`1.Cache.<>c.<.cctor>b__7_0()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.Extensions.Http.DefaultTypedHttpClientFactory`1.Cache.get_Activator()
at Microsoft.Extensions.Http.DefaultTypedHttpClientFactory`1.CreateClient(HttpClient httpClient)
at Microsoft.Extensions.DependencyInjection.HttpClientBuilderExtensions.AddTransientHelper[TClient](IServiceProvider s, IHttpClientBuilder builder)
at Microsoft.Extensions.DependencyInjection.HttpClientBuilderExtensions.<>c__DisplayClass10_0`1.<AddTypedClientCore>b__0(IServiceProvider s)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Snap.Hutao.Core.DependencyInjection.Abstraction.OverseaSupportFactory`3.Create(Boolean isOversea) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Core\DependencyInjection\Abstraction\OverseaSupportFactory.cs:line 19
at Snap.Hutao.Service.User.UserService.RefreshCookieTokenAsync(User user) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\User\UserService.cs:line 170
at Snap.Hutao.ViewModel.User.UserViewModel.RefreshCookieTokenAsync() in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\User\UserViewModel.cs:line 216
at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
Exception Data:
----------------------------------------
System.InvalidOperationException: A suitable constructor for type 'Snap.Hutao.Web.Hoyolab.Passport.PassportClientOversea' could not be located. Ensure the type is concrete and all parameters of a public constructor are either registered as services or passed as arguments. Also ensure no extraneous arguments are provided.
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.FindApplicableConstructor(Type instanceType, Type[] argumentTypes, ConstructorInfo& matchingConstructor, Nullable`1[]& matchingParameterMap)
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateFactory(Type instanceType, Type[] argumentTypes)
at Microsoft.Extensions.Http.DefaultTypedHttpClientFactory`1.Cache.<>c.<.cctor>b__7_0()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.Extensions.Http.DefaultTypedHttpClientFactory`1.Cache.get_Activator()
at Microsoft.Extensions.Http.DefaultTypedHttpClientFactory`1.CreateClient(HttpClient httpClient)
at Microsoft.Extensions.DependencyInjection.HttpClientBuilderExtensions.AddTransientHelper[TClient](IServiceProvider s, IHttpClientBuilder builder)
at Microsoft.Extensions.DependencyInjection.HttpClientBuilderExtensions.<>c__DisplayClass10_0`1.<AddTypedClientCore>b__0(IServiceProvider s)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Snap.Hutao.Core.DependencyInjection.Abstraction.OverseaSupportFactory`3.Create(Boolean isOversea) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Core\DependencyInjection\Abstraction\OverseaSupportFactory.cs:line 19
at Snap.Hutao.Service.User.UserService.RefreshCookieTokenAsync(User user) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\User\UserService.cs:line 170
at Snap.Hutao.ViewModel.User.UserViewModel.RefreshCookieTokenAsync() in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\User\UserViewModel.cs:line 216
at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
Exception Data:
----------------------------------------
System.InvalidOperationException: A suitable constructor for type 'Snap.Hutao.Web.Hoyolab.Passport.PassportClientOversea' could not be located. Ensure the type is concrete and all parameters of a public constructor are either registered as services or passed as arguments. Also ensure no extraneous arguments are provided.
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.FindApplicableConstructor(Type instanceType, Type[] argumentTypes, ConstructorInfo& matchingConstructor, Nullable`1[]& matchingParameterMap)
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateFactory(Type instanceType, Type[] argumentTypes)
at Microsoft.Extensions.Http.DefaultTypedHttpClientFactory`1.Cache.<>c.<.cctor>b__7_0()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.Extensions.Http.DefaultTypedHttpClientFactory`1.Cache.get_Activator()
at Microsoft.Extensions.Http.DefaultTypedHttpClientFactory`1.CreateClient(HttpClient httpClient)
at Microsoft.Extensions.DependencyInjection.HttpClientBuilderExtensions.AddTransientHelper[TClient](IServiceProvider s, IHttpClientBuilder builder)
at Microsoft.Extensions.DependencyInjection.HttpClientBuilderExtensions.<>c__DisplayClass10_0`1.<AddTypedClientCore>b__0(IServiceProvider s)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Snap.Hutao.Core.DependencyInjection.Abstraction.OverseaSupportFactory`3.Create(Boolean isOversea) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Core\DependencyInjection\Abstraction\OverseaSupportFactory.cs:line 19
at Snap.Hutao.Service.User.UserService.RefreshCookieTokenAsync(User user) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\User\UserService.cs:line 170
at Snap.Hutao.ViewModel.User.UserViewModel.RefreshCookieTokenAsync() in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\User\UserViewModel.cs:line 216
at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
Windows 10 Build 21H2 是一个过时的 Windows 版本。
I suggest you check you network settings yourself, it's not our end.
I used a different device, a different network, but the result was the same as above.
Use this Issue Template to file a network issue
I'm working on static network structure remodeling. It should be acceptable in one day.
@prpjzz The issue should have been fixed now.
As the picture below, there's an icon on the server, right?
It seems that some of the icons are not loaded on my machine, possibly for some reason (in the application's notification only reports an error related to the icon of the fire element, even though I checked on the server, this icon already exists)
For SSL connection errors, it is most likely due to an occasional network connection failure (the connection process to the server is interrupted).
At this moment, you can try the following steps to fix this issue:
ImageCache
folderCRIT DMG does not have a picture; nothing will be displayed there.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topic.
检查清单
Windows 版本
19044.3324
Snap Hutao 版本
1.7.3.0
设备 ID
FA1D62A0F8737EF738814EF8F70B6208
问题分类
玩家查询
发生了什么?
When open drop-down Character Attributes for character with the Data, this error is
https://github.com/DGP-Studio/Snap.Hutao/assets/89702898/2ff83530-676c-4b9d-87d4-a9aadb122582
I tried using a browser and opened it to the relevant directory, but it seems there are no files on the server and they all return 404 errors as shown in the image below.
你期望发生的行为?
No response