GetInventoryItemsRequest.Count is bugged.
Anything other than the default value (10) and the request is rejected (Error 400).
11, 25, 40, 49, 50 all don't work.
GetInventoryItemsRequest.Count is bugged.
Anything other than the default value (10) and the request is rejected (Error 400).
11, 25, 40, 49, 50 all don't work.
I have done a test in Unity, and the API GetInventoryItems works fine with "GetInventoryItemsRequest.Count = 11(and 25)". Can you share us a code snippet to repro? And what is the detailed error message?
This here only works with 10 (using the latest Unity SDK from your Github):
GetInventoryItemsRequest request = new GetInventoryItemsRequest { Entity = _entityTokenEconomy, ContinuationToken = null, Count = 11 }; PlayFabEconomyAPI.GetInventoryItems( request, result => { Debug.LogFormat("<color=green>GetInventory success</color>, continuationToken={0}, time={1}", "", Time.time); foreach (var entry in result.Items) { Debug.LogFormat("<color=yellow>{0}</color>, Id={1}, StackId={2}", entry.Type, entry.Id, entry.StackId); } AddItem(); }, error => { Debug.LogError(error); } );
/Inventory/GetInventoryItems: {"code":400,"status":"BadRequest","data":{}}
Edit: <=10 works. Looks like the maximum page size is 10 (the page size for Search() is also wrong).
17 People are following this question.