This started happening after we upgraded MarkLogic from 7 to 8. We had various rest endpoints that worked fine.
Then after the upgrade we started intermittently getting this on various GET requests:
<error-response xmlns='http://marklogic.com/xdmp/error'>
<status-code>405</status-code>
<status>Method Not Allowed</status>
<message>405 Method Not Allowed</message>
</error-response>
How do I resolve this?
Note: We had this same issue on some of our POST requests, but we were able to fix that by marking the post methods with: %rapi:transaction-mode("update")