AmazonAWSMarketplaceMeteringException: Container is called from incorrect platform.

0

I have deployed a container from my product that is in limited state for testing purposes before its public release. This product is designed for AWS ECS and EKS and includes custom unit pricing. I am utilizing the MeterUsage API to transmit customer usage data. However, upon deploying the container on AWS, I encountered an error when attempting to invoke MeterUsage. The error message is as follows:

Copy code Amazon.AWSMarketplaceMetering.AmazonAWSMarketplaceMeteringException: Container is called from incorrect platform. ---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown. ... (stack trace details)

Despite searching extensively, I have been unable to find a solution to this issue. Any assistance in resolving this error would be highly appreciated as it is crucial for the testing phase of my product.

asked 2 months ago733 views
1 Answer
0

Besides the fact that I'd check all permissions of callers to reach the targets, I would also bear in mind that the API needs to be called from the seller account id used to publish the SaaS application to successfully resolve the token.

https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/AWSMarketplaceMetering/MAWSMarketplaceMeteringBatchMeterUsageBatchMeterUsageRequest.html

https://docs.aws.amazon.com/sdkfornet/v3/apidocs/?page=MAWSMarketplaceMeteringBatchMeterUsageBatchMeterUsageRequest.html&tocid=Amazon_AWSMarketplaceMetering_AmazonAWSMarketplaceMeteringClient

profile picture
EXPERT
answered a month ago
  • This was also my first decision to solve the problem, but it's not enough. I fixed the metter response message with a test from an allow-listed account in the us-east-1 region. Only the us-east-1 region works for tests, this is the fix.