question

acyace2020 avatar image
acyace2020 asked

RedeemGooglePlayInventoryItems results in internal server error

I'm getting response 500 (Internal Server Error) when calling RedeemGooglePlayInventoryItem on a bundle.

Any hint what could've gone wrong?

Thanks

Error Message:

    "code": 500,
    "status": "InternalServerError",
    "retryAfterSeconds": null,
    "error": "InternalServerError",
    "errorCode": 1110,
    "errorMessage": "An unexpected error occured while processing the request : Unable to cast object of type 'PlayFab.WebAPIModels.Monetization.New.RedeemResponse' to type 'PlayFab.WebAPIModels.Monetization.New.RedeemGooglePlayInventoryItemsResponse'.",
    "errorHash": "2d014b0e70825d905e9fc46c44dfaf1a",

Details if that helps, including request id

"errorDetails": {
        "RequestID": [
            "1-634f0a21-18f678ab162d951566f0ebb6"
        ],
        "StackTrace": [
            "   at lambda_method40545440(Closure , RedemptionResponse , RedeemGooglePlayInventoryItemsResponse , ResolutionContext )\n   at lambda_method40545441(Closure , Object , Object , ResolutionContext )\n   at AutoMapper.Mapper.AutoMapper.IMapper.Map[TDestination](Object source)\n   at PlayFab.MonetizationServices.MonetizationService.SendCommerceRequest[TResponse,TResult](Object request, String namespaceId, String titleId, IApiContext apiContext, Nullable`1 timeout) in /home/runner/work/pf-main/pf-main/Server/UberNetServices/MonetizationService/MonetizationService.cs:line 60\n   at PlayFab.ActionFilters.MonetizationService.MonetizationDownstreamService.SendCommerceRequest[TResponse,TResult](Object request, String namespaceId, String titleId, IApiContext apiContext, Nullable`1 timeout) in /home/runner/work/pf-main/pf-main/Server/UberNetServices/MonetizationService/MonetizationDownstreamService.cs:line 73\n   at PlayFab.MainServer.Controllers.InventoryControllerHelper.SendCommerceRequestAsync[TResponse,TResult](IMonetizationService _targetService, Object request, String namespaceId, String titleId, IApiContext context, Dictionary`2 requestLimits, HttpContext httpcontext, CancellationToken cancellationToken, String action, EntityKey actedUponEntity, String collectionId, IClaimant claimantOverride) in /home/runner/work/pf-main/pf-main/Server/MainServer/Controllers/InventoryController/InventoryControllerHelpers.cs:line 234\n   at PlayFab.MainServer.Controllers.InventoryControllerHelper.<>c__DisplayClass17_0`2.<<SendRedemptionRequestAsync>b__0>d.MoveNext() in /home/runner/work/pf-main/pf-main/Server/MainServer/Controllers/InventoryController/InventoryControllerHelpers.cs:line 162\n--- End of stack trace from previous location ---\n   at PlayFab.MainServer.Controllers.InventoryControllerHelper.SafeOperationAsync[TResult](Func`1 action) in /home/runner/work/pf-main/pf-main/Server/MainServer/Controllers/InventoryController/InventoryControllerHelpers.cs:line 251\n   at PlayFab.MainServer.Controllers.InventoryControllerHelper.SendRedemptionRequestAsync[TResponse,TResult](RedemptionServiceRequest request, String namespaceId, String titleId, IApiContext context, HttpContext httpcontext, String action, EntityKey actedUponEntity, String collectionId, IClaimant claimantOverride) in /home/runner/work/pf-main/pf-main/Server/MainServer/Controllers/InventoryController/InventoryControllerHelpers.cs:line 160\n   at PlayFab.MainServer.Controllers.InventoryControllerHelper.RedeemMarketplaceInventoryItems[TResponseType,TRequestType](TRequestType marketplaceRequest, HttpContext httpContext, AppRequestContextHelper appRequestContext, ModelStateDictionary modelState, RedeemCallHandler`2 redeemCallHandler) in /home/runner/work/pf-main/pf-main/Server/MainServer/Controllers/InventoryController/InventoryControllerHelpers.New.cs:line 1213\n   at PlayFab.MainServer.Controllers.InventoryController.RedeemGooglePlayInventoryItems(RedeemGooglePlayInventoryItemsRequest request) in /home/runner/work/pf-main/pf-main/Server/MainServer/Controllers/InventoryController/InventoryController.New.cs:line 576\n   at lambda_method40545420(Closure , Object )\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)"
        ]
    }


.

apis
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.

Xiao Zha avatar image Xiao Zha commented ·

I will dig into it.

0 Likes 0 ·
Xiao Zha avatar image Xiao Zha commented ·

You may need to submit a support ticket to solve this issue.

0 Likes 0 ·

1 Answer

·
kylemc@microsoft.com avatar image
kylemc@microsoft.com answered

Thanks for reporting this issue. We identified a bug on our side. I expect the fix to be available in production next week.

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.

acyace2020 avatar image acyace2020 commented ·

Cool thanks, looking forward to it.

Guess I don't need to submit the support ticket as @Xiao Zha suggested in the other comment any more?

0 Likes 0 ·
Xiao Zha avatar image Xiao Zha acyace2020 commented ·

Yes, now you don't need to submit the support ticket.

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.