cancel
Showing results for 
Search instead for 
Did you mean: 

401 : Consistent response

nusa
Champ in-the-making
Champ in-the-making


I am still have problem using some APIs. We are using Alfresco 7.1.1, and I use Postman to call some APIs.

For authentication, to get a ticket I am using
POST : https://xxx/alfresco/api/-default-/public/authentication/versions/1/tickets

The probleme is the next call using that ticket, and I receive a 401 response. Not all the time.

For exemple, to validate a ticket I use this API :
GET : https://xxx/alfresco/api/-default-/public/authentication/versions/1/tickets/-me-
with pm.request.headers.add("Authorization: Basic " + btoa("TICKET_xxx")); under the 'Pre-request Script' on Postman.

To delete a ticket, I use this
DELETE : https://xxx/alfresco/api/-default-/public/authentication/versions/1/tickets/-me-
with pm.request.headers.add("Authorization: Basic " + btoa("TICKET_xxx"));

When I call those API either to validate a ticket or to delete a ticket, sometimes it worked, sometimes I got 401.
Any idea why ?

1 REPLY 1

Dennis236
Champ in-the-making
Champ in-the-making

The term "consistent response" in the context of a 401 error is not a standard HTTP term. However, if you're referring to a consistent response in general, it means that the server consistently responds with a 401 status code whenever unauthorized access is detected.