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

【其他】昨天下午突然变成这样的,之前正常的,不知道是不是个例,百度无果 #463

Closed
buyikun opened this issue Feb 26, 2023 · 6 comments
Labels
done done

Comments

@buyikun
Copy link

buyikun commented Feb 26, 2023

提issue前确认没有其他人提过相同的议题
所有任务日志均如下

开始执行... 2023-02-26 11:47:15

已安装dotnet,当前版本:6.0.405

repo目录: /ql/repo
bili仓库目录: /ql/repo/RayWangQvQ_BiliBiliToolPro

[11:47:21 FTL] Host terminated unexpectedly!
System.ArgumentException: An item with the same key has already been added. Key: bili_jct
at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](TSource[] source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector)
at Ray.BiliBiliTool.Infrastructure.Cookie.CookieStrFactory.CkStrToDictionary(String ckStr) in /ql/repo/RayWangQvQ_BiliBiliToolPro/src/Ray.BiliBiliTool.Infrastructure/Cookie/CookieStrFactory.cs:line 103
at Ray.BiliBiliTool.Infrastructure.Cookie.CookieStrFactory..ctor(List1 strList) in /ql/repo/RayWangQvQ_BiliBiliToolPro/src/Ray.BiliBiliTool.Infrastructure/Cookie/CookieStrFactory.cs:line 17 at Ray.BiliBiliTool.Agent.Extensions.ServiceCollectionExtension.<>c.<AddBiliBiliClientApi>b__0_0(IServiceProvider sp) in /ql/repo/RayWangQvQ_BiliBiliToolPro/src/Ray.BiliBiliTool.Agent/Extensions/ServiceCollectionExtension.cs:line 46 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Ray.BiliBiliTool.Console.Program.Main(String[] args) in /ql/repo/RayWangQvQ_BiliBiliToolPro/src/Ray.BiliBiliTool.Console/Program.cs:line 27

执行结束... 2023-02-26 11:47:21 耗时 6 秒

@RayWangQvQ
Copy link
Owner

你咋登录的?用的扫码登录?

@RayWangQvQ RayWangQvQ added done done needs-more-info Further information is requested 需要更多信息 labels Feb 26, 2023
@buyikun
Copy link
Author

buyikun commented Feb 27, 2023

对,经你启发,把ck删了,重扫了一遍,似乎可以了qaq

@github-actions github-actions bot removed the needs-more-info Further information is requested 需要更多信息 label Feb 27, 2023
@melodyjerry
Copy link

@buyikun 请问在哪里删除ck?我在环境变量里面禁用了之前的ck,重新执行脚本,还是报这个错

@buyikun
Copy link
Author

buyikun commented May 29, 2023

@buyikun 请问在哪里删除ck?我在环境变量里面禁用了之前的ck,重新执行脚本,还是报这个错

就是直接环境变量里面删除啊

@melodyjerry
Copy link

@buyikun 请问在哪里删除ck?我在环境变量里面禁用了之前的ck,重新执行脚本,还是报这个错

就是直接环境变量里面删除啊

@buyikun 我删除了,再运行还是一样的报错

@buyikun
Copy link
Author

buyikun commented May 31, 2023

@buyikun 请问在哪里删除ck?我在环境变量里面禁用了之前的ck,重新执行脚本,还是报这个错

就是直接环境变量里面删除啊

@buyikun 我删除了,再运行还是一样的报错

我不知道捏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done done
Projects
None yet
Development

No branches or pull requests

3 participants