{"action":"created","issue":{"url":"https://api.github.com/repos/marklogic/Geophoto/issues/8","repository_url":"https://api.github.com/repos/marklogic/Geophoto","labels_url":"https://api.github.com/repos/marklogic/Geophoto/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/marklogic/Geophoto/issues/8/comments","events_url":"https://api.github.com/repos/marklogic/Geophoto/issues/8/events","html_url":"https://github.com/marklogic/Geophoto/issues/8","id":162001030,"number":8,"title":"Import failed with code 500","user":{"login":"ouyi","id":15970333,"avatar_url":"https://avatars.githubusercontent.com/u/15970333?v=3","gravatar_id":"","url":"https://api.github.com/users/ouyi","html_url":"https://github.com/ouyi","followers_url":"https://api.github.com/users/ouyi/followers","following_url":"https://api.github.com/users/ouyi/following{/other_user}","gists_url":"https://api.github.com/users/ouyi/gists{/gist_id}","starred_url":"https://api.github.com/users/ouyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouyi/subscriptions","organizations_url":"https://api.github.com/users/ouyi/orgs","repos_url":"https://api.github.com/users/ouyi/repos","events_url":"https://api.github.com/users/ouyi/events{/privacy}","received_events_url":"https://api.github.com/users/ouyi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marklogic/Geophoto/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-23T19:13:54Z","updated_at":"2016-06-25T08:24:18Z","closed_at":null,"body":"Hi,\r\n\r\nI got this error when trying to import a photo:\r\n\r\n```\r\n$ node import.js ../data/photos/01.JPG\r\nInstalled module: /ext/countrysemantics.sjs\r\nInserted document with URI /image/01.JPG.json\r\nInserted image with URI /binary/01.JPG\r\n{ [Error: SPARQL graph query: cannot process response with 500 status]\r\n  message: 'SPARQL graph query: cannot process response with 500 status',\r\n  statusCode: 500,\r\n  body:\r\n   { errorResponse:\r\n      { statusCode: 500,\r\n        status: 'Internal Server Error',\r\n        messageCode: 'INTERNAL ERROR',\r\n        message: 'XDMP-TRPLIDXNOTFOUND: xdmp:security-assert(\"http://marklogic.com/xdmp/privileges/rest-reader\", \"execute\"), let $rule := conf:get-sparql-protocol-rule() let $params := rest:process-request($rule) let $headers := eput:get-request-headers() let $method := eput:get-request-method($headers) let $env := map:map() let $params := local:validate-params($rule, $env, $params) let $body := switch ($method) case \"GET\" return text { fn:head((map:get($params, \"query\"), map:get($params, \"update\"))) } case \"POST\" return xdmp:get-request-body(eput:get-content-format($headers, $params))/node() default return fn:error((), \"REST-UNSUPPORTEDMETHOD\", $method) let $result := semmod:sparql-query($headers, $params, $body) let $response := if ($result instance of xs:string and $result = (\"EMPTY-CONSTRUCT\", \"EMPTY-DESCRIBE\")) then semmod:empty-construct($headers, $params, local:sparql-callback#2) else if ($result instance of xs:string and $result eq \"EMPTY-SELECT\") then semmod:empty-select($headers, $params, local:sparql-callback#2) else semmod:results-payload($headers, $params, $result, local:sparql-callback#2) return if ($response instance of node() and $response/self::semmod:malformed-query) then (xdmp:set-response-code(400, \"Malformed Query\"), $response) else $response -- Triple index not enabled . See the MarkLogic server error log for further detail.' } } }\r\n\r\n```\r\n\r\nMy setup:\r\n- MarkLogic-RHEL6-8.0-5.4.x86_64.rpm \r\n- port changed from 5003 to 8000 in dbsettings.js and import/import.js\r\n\r\nIs this an issue or sth is wrong in my setup?\r\n\r\nThanks!\r\nYi Ou"},"comment":{"url":"https://api.github.com/repos/marklogic/Geophoto/issues/comments/228523071","html_url":"https://github.com/marklogic/Geophoto/issues/8#issuecomment-228523071","issue_url":"https://api.github.com/repos/marklogic/Geophoto/issues/8","id":228523071,"user":{"login":"ouyi","id":15970333,"avatar_url":"https://avatars.githubusercontent.com/u/15970333?v=3","gravatar_id":"","url":"https://api.github.com/users/ouyi","html_url":"https://github.com/ouyi","followers_url":"https://api.github.com/users/ouyi/followers","following_url":"https://api.github.com/users/ouyi/following{/other_user}","gists_url":"https://api.github.com/users/ouyi/gists{/gist_id}","starred_url":"https://api.github.com/users/ouyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouyi/subscriptions","organizations_url":"https://api.github.com/users/ouyi/orgs","repos_url":"https://api.github.com/users/ouyi/repos","events_url":"https://api.github.com/users/ouyi/events{/privacy}","received_events_url":"https://api.github.com/users/ouyi/received_events","type":"User","site_admin":false},"created_at":"2016-06-25T08:24:18Z","updated_at":"2016-06-25T08:24:18Z","body":"Hi Tamas, yes I am still having this issue. The Triple Index is enabled according to the Admin Interface, for the \"App Services\" database. Thanks!"}}
{"actor":{"display_login":"ouyi"}}