Hello,
today on May 3rd 2024 around 4:00 AM UTC we started experiencing crashes on our title using PlayFab hosted on AzureFunctions. We found out that the reason for this is sudden change of behaviour of the PlayFabEconomyAPI.GetItemsAsync method which we find weird, as this part of the code has been running without a problem for past 6+ months for us.
The method was returning 400 - Invalid request error because we were passing empty array to the request.Ids in some cases. After we supplied Ids parameter with null, method is working correctly. Said in code:
// Previous code - non working
GetItemsRequest itemsRequest = new GetItemsRequest
{
AuthenticationContext = GetAuthenticationContext(context),
AlternateIds = alternateIdsList,
Ids = uniqueIdsList // <= this list has been initialized list with 0 number of elements
};
// Updated code - working now
GetItemsRequest itemsRequest = new GetItemsRequest
{
AuthenticationContext = GetAuthenticationContext(context),
AlternateIds = alternateIdsList.Count <= 0 ? null : alternateIdsList,
Ids = uniqueIdsList.Count <= 0 ? null : uniqueIdsList
};
Based on this, I assume something was changed on your side regarding requests handling. Can you please:
1) Confirm that some change on your end really occured
2) If so, can it affect also other methods behaviour?
3) Do you have any webpage where we can monitor similar changes like this?**
Thanks in advance for your answer!