question

adrianvergara avatar image
adrianvergara asked

500 Internal Server Error on PurchaseItem

Am getting a 500 Internal Server Error when I try to purchase an item using PurchaseItem(). The item is a bundle which checks a drop table (effectively copied from the samples you have for daily bonuses) to test the system in our game.

Not sure what could be going wrong -- the code seems to be formatted correctly and the 500 error is vague. Any help would be appreciated?

(On a side note, how do I retrieve an item's description, there seems to be no result.Items[1].Description field?)

10 |1200

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

adrianvergara avatar image
adrianvergara answered

EDIT: Apparently there was an incorrect configuration in the drop table, was able to sort this out. If you can make a more specific error code for future folks that might come in to this issue it would certainly help/save a lot of time.

Still trying to figure out the description text retrieval

3 comments
10 |1200

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

brendan avatar image brendan commented ·

The 500 error means that an error occurred which isn't expected - anytime you see that, there's a work item opened on our side to add a specific error message for the condition. What specifically was the issue with the drop table?

For the Description, that's returned in the Catalog (GetCatalogItems).

0 Likes 0 ·
adrianvergara avatar image adrianvergara brendan commented ·

Hi Brendan, thanks for that, will give GetCatalogItems a shot.

The issue specifically was the Drop Table was referencing an item that was not in the Catalog.

0 Likes 0 ·
brendan avatar image brendan adrianvergara commented ·

Interesting - we have a check for that in the grant flow, so the PurchaseItem flow must do something different. We'll have a look.

0 Likes 0 ·
chrisk avatar image
chrisk answered

A quick head's up that we're getting a 500 Internal Error when we're using the PurchaseItem call to purchase an item with Real Money (RM). We've confirmed that the item in the catalog has its RM value set and that the value we're passing to the PurchaseItem call matches the catalog.

What is the potential cause of this issue?

1 comment
10 |1200

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

datnguyen avatar image datnguyen commented ·

Did you solve it? I'm facing the same issue but have no ideas what cause this. Is there any log we can look?

0 Likes 0 ·

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.