Forum Discussion

to_the_cosmic_end's avatar
2 months ago

Consume Entitlement Endpoint returns 500 Internal Server Error.

Hello, I am using consume_entitlement endpoint for my consumable IAP. I have been testing with my "Test User" account on my Meta Quest 2 and since yesterday my server has been receiving 500 Internal Server Error with this response from Meta's endpoint:

{
    "error": {
        "message": "An unexpected error has occurred. Please retry your request later.",
        "type": "OAuthException",
        "is_transient": true,
        "code": 2,
        "fbtrace_id": "##--######_######"
    }
}

so far I haven't noticed any error in my production server but this is happening in my local testing. 
Please note that my local server is able to run "verify_entitlement" endpoint correctly and returns accurate JSON with `success` and `grant_time` key but after which it fails to  consume the entitlement.

here is the screenshot from postman:

3 Replies

  • I have been getting the same exact problem. I guess it is consuming the item since it disappears from the test users inventory. Also, this was happing to people in production too, not just test users. I didn't find any fix for it.

    • to_the_cosmic_end's avatar
      to_the_cosmic_end
      Protege

      Wow, that's strange. I hope it is indeed consumed during the verify_entitlement process, otherwise I believe all purchases would be automatically refunded after 3 days if not consumed. Thanks for the update, I was thinking it was just happening to me.