com.marklogic.client.ForbiddenUserException: Local message: User is not allowed to write documents. Server Message: Server (not a REST instance?) did not respond with an expected REST Error message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by srinathgit
, 1 year ago
Local message: User is not allowed to write documents. Server Message: Server (not a REST instance?) did not respond with an expected REST Error message.
com.marklogic.client.ForbiddenUserException: Local message: User is not allowed to write documents. Server Message: Server (not a REST instance?) did not respond with an expected REST Error message.
at com.marklogic.client.impl.JerseyServices.putPostDocumentImpl(JerseyServices.java:1363)
at com.marklogic.client.impl.JerseyServices.putDocument(JerseyServices.java:1183)
at com.marklogic.client.impl.DocumentManagerImpl.write(DocumentManagerImpl.java:913)
at com.marklogic.client.impl.DocumentManagerImpl.write(DocumentManagerImpl.java:751)
at com.marklogic.client.impl.DocumentManagerImpl.write(DocumentManagerImpl.java:681)
at com.marklogic.client.functionaltest.TestCertBasedAuth.main(TestCertBasedAuth.java:103)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.