MarkLogic version: 9.0.4
Getting below error while making a REST API call to custom end point.
"message": "RESTAPI-INVALIDREQ: fn.error(null, 'RESTAPI-INVALIDREQ', -- Invalid request: reason: cannot read module /marklogic.rest.resource/customer-pref/assets/resource.sjs for extension customer-pref . See the MarkLogic server error log for further detail." }}
I verified that the module /marklogic.rest.resource/customer-pref/assets/resource.sjs
is present in data-hub-modules database. Also, I am using admin credentials while making this call. Still getting the error.
Any pointers are highly appreciated.
Undeployed and Redeployed MarkLogic 9.0.4 using DHF 2.0.3 and that resolved the issue. Apparently DHF 3.0.0 works only for MarkLogic 9.0.5 or higher.