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년 전402회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠