Resolve a subscription error - 400 InvalidValue Failed to decrypt token with either primary or secondary secret
Please give any info on this.
- Customer select SaaS offer in Ms AppSource store and install it
- AppSource redirect user to my SaaS web page with ?token=<token> url parameter
- My SaaS web page try to resolve token: send POST to https://marketplaceapi.microsoft.com/api/saas/subscriptions/resolve?api-version=2018-08-31 with proper x-ms-marketplace-token header
- Some times it works, some times marketplaceapi return error 400
InvalidValue Failed to decrypt token with either primary or secondary secret
I see this error in logs many times. How to fix it?
Hi Alexey, if you have not already, please submit a ticket to engage our support team for investigation and escalation. https://aka.ms/MarketplacePublisherSupport or through Partner Center.