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 ?
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.