cancel
Showing results for 
Search instead for 
Did you mean: 

how to handle the exceptions which is coming from nuxeo server with proper message

Rahul_Mittal
Champ in-the-making
Champ in-the-making

I have created some plugins which i have deployed on nuxeo local server. I have created another simple spring boot project which will call rest api like String createDocumentUrl="http://localhost:8081/nuxeo/api/v1/document";

return restTemplate.exchange(createDocumentUrl, HttpMethod.POST, requestEntity, String.class);

how to handle the exceptions which is coming from nuxeo server with proper message. because what i am getting is only 400 Bad Request

1 REPLY 1

Patrick_Abgrall
Star Contributor
Star Contributor

According to https://doc.nuxeo.com/nxdoc/error-handling/

Simple mode is activated by default. The extended mode can be configured through a parameter (in nuxeo.conf): org.nuxeo.rest.stack.enable=true

where the modes are defined as:

Two modes are available:

  • Simple (without exception stack trace)
  • Extended (with exception stack trace)

Have you tried this?