question

duartedd avatar image
duartedd asked

revoke inventory items not working from character via cloudscript

Hello I am having issues revoking the item - can someone help take a look at what is going on ? the result is error : [] from the revoke items request

any help would be appreciated - the item is FireguardAxe 80D36872D7BD8914 , character -> 721E82F0C0049B44 , pfid -> 438396B7EBA45A96

title id -> C1D2 - logs are also in the playstream and its run via the cloudscript - you can see everything works except the revokeinventoryitems on line 3383 - which i think gives an error but doesnt have anything useful to know what the issue is.

thanks!

Daniel

"Message": "[testfunction] 3430 ddddd == strinigifiednftstoremove [{\"ItemId\":\"FireguardAxe\",\"ItemInstanceId\":\"80D36872D7BD8914\",\"ItemClass\":\"1HPrimary\",\"PurchaseDate\":\"2021-11-17T23:09:09.625Z\",\"CatalogVersion\":\"Item Database\",\"DisplayName\":\"Fireguard Axe\",\"UnitPrice\":0,\"CustomData\":{\"TokenId\":\"18c0000000000e0700000000000000000000000000000013\",\"DisplayName\":\"Fireguard Axe 13/10000\"}}]",

                "Data": null
            {
                "Level": "Debug",
                "Message": "[testfunction] 1 ddddd == stringifieditemstorevoke [{\"PlayFabId\":\"438396B7EBA45A96\",\"ItemInstanceId\":\"80D36872D7BD8914\",\"CharacterId\":\"721E82F0C0049B44\"}]",
                "Data": null
            },
            {
                "Level": "Debug",
                "Message": "[testfunction]  ddddd == stringifiedrevokeitemsresult {\"Errors\":[]}",
                "Data": null
            }
        ],
2 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.

Seth Du avatar image Seth Du ♦ commented ·

From the logs, I can only see the basic information of item. What is the callback result of revoke API? Is there any detailed error message?

0 Likes 0 ·
duartedd avatar image duartedd Seth Du ♦ commented ·

@SethDu - thanks for helping on this btw - the result from the revoke is:{\"Errors\":[]}", i stringified the result and logged it for ease.

strange - all i get is an empty array of Errors nothing else

0 Likes 0 ·

1 Answer

·
Seth Du avatar image
Seth Du answered

I have checked your title and the error for RevokeInventoryItems API call is InvalidParams, which is usually caused by incorrect request.

I suggest test your request in Postman before deploying it on Game Manager.

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.