question

Ben avatar image
Ben asked

Occasional error on API calls - A third-party downstream provider returned an error...

I've noticed on our client error reporting many instances of a certain error. It seems to happen on clients and servers when calling CloudScript.

Specific error text:

/Client/ExecuteCloudScript: A third-party downstream provider returned an error to the PlayFab service

Any ideas what this could be?

apisCloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Basically, it means that an API call made from Cloud Script (either using http.request(), or a Server API call) failed for some reason. So either the web service endpoint isn't responding (some third party web API endpoints have historically not had the highest availability), or it returned an error that isn't being handled.

What exactly are the calls being made in the script? If it's a call to PlayFab, what's the usage pattern?

Using one specific example, if it's an inventory operation, how often are you trying to update inventory? Bear in mind that the "heat" on a particular database table is directly related to how often you hit the same element. Since, in the legacy inventory model (we'll be making the new model available as soon as we can), each player's inventory shares the same hash key for all items, that means you shouldn't be trying to update player inventory at a high rate for very long, since that absolutely will cause delays in response times. In that scenario, adding an animation on the client side to "gate" the rate to slightly less often would be the way to go.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.