https://metaplay.io logo
we have encountered this issue in our staging envi...
# questions-and-feedback
d
Copy code
all-0:[10:29:47.220 ERR InAppValidator:0000000000] Failed to get Google purchase info (for purchaseType), treating as unknown payment type: The service androidpublisher has thrown an exception.                    
all-0: HttpStatusCode is NotFound.  
all-0: Google.Apis.Requests.RequestError 
all-0: The document type is not supported. [404]   
all-0: Errors [   
all-0:  Message[The document type is not supported.] Location[token - parameter] Reason[unsupportedDocType] Domain[androidpublisher] 
all-0: ]                                                                                                                                    
all-0: Google.GoogleApiException: The service androidpublisher has thrown an exception. HttpStatusCode is NotFound. The document type is not supported. 
all-0:    at Google.Apis.Requests.ClientServiceRequest`1.ParseResponse(HttpResponseMessage response)                                                    
all-0:    at Google.Apis.Requests.ClientServiceRequest`1.ExecuteAsync(CancellationToken cancellationToken)    
all-0:    at Google.Apis.Requests.ClientServiceRequest`1.ExecuteAsync()
when running subscription purchase - regular purchases work. I would appreciate help solving this issue.
another message from log:
Copy code
all-0:[10:29:47.454 WRN InAppValidator:0000000000] Unexpected exception during validation:txnInfo The service androidpublisher has thrown an exception.             
all-0: HttpStatusCode is BadRequest.
all-0: Google.Apis.Requests.RequestError                           
all-0: Your request is invalid for this subscription purchase. [400]
all-0: Errors [
all-0:  Message[Your request is invalid for this subscription purchase.] Location[ - ] Reason[subscriptionInvalidArgument] Domain[androidpublisher]                 
all-0: ]                                                                                                                      
all-0:                        
all-0: Google.GoogleApiException: The service androidpublisher has thrown an exception. HttpStatusCode is BadRequest. Your request is invalid for this subscription purchase.
all-0:    at Google.Apis.Requests.ClientServiceRequest`1.ParseResponse(HttpResponseMessage response)
all-0:    at Google.Apis.Requests.ClientServiceRequest`1.ExecuteAsync(CancellationToken cancellationToken)
all-0:    at Google.Apis.Requests.ClientServiceRequest`1.ExecuteAsync()
all-0:    at Metaplay.Server.InAppPurchase.InAppPurchaseValidatorActor.FetchGoogleSubscriptionInfoAsync(GoogleReceipt receipt) in /build/MetaplaySDK/Backend/Server/InAppPurchase/InAppPurchaseValidatorActor.cs:line
 716                                                                                                                               all-0:    at Metaplay.Server.InAppPurchase.InAppPurchaseValidatorActor.ValidatePurchaseGoogleAsync(InAppPurchaseTransactionInfo txnInfo, String platformProductId, String receiptJson, String signature64) in /build/
MetaplaySDK/Backend/Server/InAppPurchase/InAppPurchaseValidatorActor.cs:line 613
j
Hey, Thanks for the bug report, we've reproduced this issue. The error log is benign and the subscription still works. A fix will be included in R34 which is expected to go out on the 10th of September