Always getting 'InvalidTokenException' while token is not modified.

0

I am getting token from aws marketplace when I subscribe to my product from aws marketplace via a test account. But when I call the resolve-customer-api over the token, I get 'InvalidTokenException'.

I tried to resolve token even via CLI but same error.

I had been working perfectly earlier but its not now. By comparing the token to previous one I have realized that the length of previous tokens were 180 but this one has 194.
Here is the body of post request to my page from AWS marketplace.
body: 'x-amzn-marketplace-token=MNEwEjq%2FBGaoLe2mueodq%2BuSzoG6pYX4xR4PO7qGKL7N%2FhQyc0I8DyVcwCTSjLtxddVRZqAnbhPHABHquQ5gKAim0S0z8KhfJfH5Nz9Elaa9uwGKhKM33KpD%2BJMU6MSF%2BFMc2Mv22nQP%2FF0DLgFDXqkBe%2FT262K0Bxj8IHMK07ZW27uuR96A'

I am not sure why am I getting this error.
Thanks,
Faizan

質問済み 4年前394ビュー
1回答
0

The token I received in the body was URL encoded, by decoding it, it works fine.

But still I don't know why is it in body like a string:
body:{
'x-amazon-marketplace-token=xxxxxxxxxxxxxxxxtoken'
}

and not like this:
body:{
'x-amazon-marketplace-token':'xxxxxxxxxxxxxxxxxtoken'
}

Edited by: faizanshah on Jul 25, 2020 1:39 AM

回答済み 4年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ