How to solve error code "InvalidAuthenticationToken"
Problem
The following error message may appear when we execute an HTTP request:
Error :
{
"error": {
"code": "InvalidAuthenticationToken",
"message": "CompactToken parsing failed with error code: 80049217",
"innerError": {
"date": "2022-09-16T08:36:52",
"request-id": "cc17d770-f93d-40b6-8643-6c0d1534c644",
"client-request-id": "cc17d770-f93d-40b6-8643-6c0d1534c644"
}
}
}
Solution
In most cases, the problem is caused by the wrong Authorization key value, i.e., Bearer{{AccessToken}} instead of Bearer {{AccessToken}}, with a space between the word Bearer and the Access Token.