05-17-2023 03:27 PM
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 ?
05-22-2023 04:10 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.