Random Unauthorized Error

hassangamal
New Contributor

Random Unauthorized Error

I randomly received an "Unauthorized" response, but after multiple attempts, I got a 200 response, and it worked fine. I'm not sure what the issue is.

4 REPLIES 4
hassangamal
New Contributor

Re: Random Unauthorized Error

this is my request body 

curl --location 'https://sandbox.api.visa.com/cofds-web/v1/datainfo' \
--header 'keyId: {keyId} \
--header 'ex-correlation-id: WH1D2K3A9VFG_SC' \
--header 'Authorization: Basic Convert.ToBase64String Encoding.UTF8.GetBytes(userId + ":" + password));

' \
--header 'Content-Type: application/json' \
--data '{
"encData": "eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMTI4R0"
}'

hassangamal
New Contributor

Re: Random Unauthorized Error

{
"responseStatus": {
"status": 401,
"code": "9210",
"severity": "ERROR",
"message": "Token validation failed",
"info": ""
}
}
SyedSa
Community Moderator

Re: Random Unauthorized Error

Hi @hassangamal, Thank you for reaching out! An agent will get back to you as soon. Until then, if any community member knows a solution, feel free to reply in this thread.

hassangamal
New Contributor

Re: Random Unauthorized Error

this is my response 

Im getting the same response using Insomnia client.

{
"responseStatus": {
"status": 401,
"code": "9122",
"severity": "ERROR",
"message": "Authentication failed",
"info": ""
}
}