Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork17
Open
Description
Example code:
[Fact]publicasyncTaskTest1(){varclient=newWikiClient();varsite=newWikiSite(client,"https://warriors.fandom.com/api.php");awaitsite.Initialization;varresult=awaitnewCategoryMembersGenerator(site,"Category:Spotfur's Rebellion"){PaginationSize=50,}.EnumPagesAsync().Take(100).ToListAsync();}
Failure
System.ArgumentNullExceptionValue cannot be null. (Parameter 'value') at Newtonsoft.Json.Linq.JToken.EnsureValue(JToken value) at Newtonsoft.Json.Linq.JToken.op_Explicit(JToken value) at WikiClientLibrary.Pages.Queries.Properties.PageInfoPropertyGroup..ctor(JObject jPage) in ~\WikiClientLibrary\WikiClientLibrary\Pages\Queries\Properties\PageInfoPropertyProvider.cs:line 54 at WikiClientLibrary.Pages.Queries.Properties.PageInfoPropertyProvider.ParsePropertyGroup(JObject json) in ~\WikiClientLibrary\WikiClientLibrary\Pages\Queries\Properties\PageInfoPropertyProvider.cs:line 28 at WikiClientLibrary.Pages.Queries.WikiPageQueryProvider.ParsePropertyGroups(JObject json)+MoveNext() in ~\WikiClientLibrary\WikiClientLibrary\Pages\Queries\WikiPageQueryProvider.cs:line 150 at WikiClientLibrary.Pages.WikiPage.OnLoadPageInfo(JObject jpage, IWikiPageQueryProvider options) in ~\WikiClientLibrary\WikiClientLibrary\Pages\WikiPage.cs:line 324 at WikiClientLibrary.Infrastructures.MediaWikiHelper.PopulatePageFromJson(WikiPage page, JObject json, IWikiPageQueryProvider options) in ~\WikiClientLibrary\WikiClientLibrary\Infrastructures\MediaWikiHelper.cs:line 356 at WikiClientLibrary.Pages.WikiPage.<>c__DisplayClass0_0.<FromJsonQueryResult>b__1(JProperty page) in ~\WikiClientLibrary\WikiClientLibrary\Pages\PageFactory.cs:line 35 at System.Linq.Enumerable.SelectIPartitionIterator`2.ToList() at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at WikiClientLibrary.Pages.WikiPage.FromJsonQueryResult(WikiSite site, JObject jpages, IWikiPageQueryProvider options) in ~\WikiClientLibrary\WikiClientLibrary\Pages\PageFactory.cs:line 31 at WikiClientLibrary.Generators.Primitive.WikiPageGenerator`1.<>c__DisplayClass8_0.<EnumPagesAsync>b__1(JObject jquery) in ~\WikiClientLibrary\WikiClientLibrary\Generators\Primitive\WikiPageGenerator.cs:line 117 at System.Linq.AsyncEnumerable.SelectManyAsyncIterator`2.MoveNextCore() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SelectMany.cs:line 463 at System.Linq.AsyncIteratorBase`1.MoveNextAsync() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs:line 70 at System.Linq.AsyncIteratorBase`1.MoveNextAsync() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs:line 75 at System.Linq.AsyncEnumerablePartition`1.ToListAsync(CancellationToken cancellationToken) in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs:line 348 at System.Linq.AsyncEnumerablePartition`1.ToListAsync(CancellationToken cancellationToken) in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs:line 353 at WikiClientLibrary.Tests.UnitTestProject1.Playground.Test1() in ~\WikiClientLibrary\UnitTestProject1\_private\Playground.cs:line 53 at Xunit.Sdk.TestInvoker`1.<>c__DisplayClass48_1.<<InvokeTestMethodAsync>b__1>d.MoveNext() in C:\Dev\xunit\xunit\src\xunit.execution\Sdk\Frameworks\Runners\TestInvoker.cs:line 264--- End of stack trace from previous location where exception was thrown --- at Xunit.Sdk.ExecutionTimer.AggregateAsync(Func`1 asyncAction) in C:\Dev\xunit\xunit\src\xunit.execution\Sdk\Frameworks\ExecutionTimer.cs:line 48 at Xunit.Sdk.ExceptionAggregator.RunAsync(Func`1 code) in C:\Dev\xunit\xunit\src\xunit.core\Sdk\ExceptionAggregator.cs:line 90