This repository has been archived by the owner on May 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Samplestack extensions not compatible with MarkLogic 9 JavaScript #703
Comments
This would appear to be a compatibility issue that arose when we changed the iterable api in ML. I believe the solution would be to fix the JS transform in the server. |
to something like
would probably do it, I think, but not tested. |
|
Verified that this bug prevents the application from working, and also prevents loading of RDF data. The database is other wise loaded correctly. |
After making these changes in search-response.sjs following tests are giving assertions error at the time of deploying samplestack.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi Charles—
I’m playing around with the Optic EA3 stuff (instructions at https://ea.marklogic.com/features/data-integration/optic-api/) and I’m trying to use the UI. The port is open, no errors in the log, but the server is throwing this error:
2016-09-27 11:42:34.839 Info: Status 500: JS-JAVASCRIPT: var sourceDoc = fn.doc(uri).next().value; -- Error running JavaScript request: TypeError: fn.doc(...).next is not a function
The UI is giving me this exception:
{"data":{"status":400,"message":"com.marklogic.client.FailedRequestException: Local message: search failed: Bad Request. Server Message: JS-JAVASCRIPT: var sourceDoc = fn.doc(uri).next().value; -- Error running JavaScript request: TypeError: fn.doc(...).next is not a function"},"status":400,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null,null],"url":"/v1/search","data":{"search":{"qtext":["","sort:active"],"start":1,"timezone":"America/New_York"}},"timeout":60000,"headers":{"Accept":"application/json, text/plain, /","Content-Type":"application/json;charset=utf-8"}},"statusText":"Bad Request”}
$scope.runSearch/<@http://localhost:8090/app/states/explore.js:300:21
processQueue@http://localhost:8090/deps/angular/angular.js:13170:27
scheduleProcessQueue/<@http://localhost:8090/deps/angular/angular.js:13186:27
$RootScopeProvider/this.$get
The text was updated successfully, but these errors were encountered: