{"action":"opened","issue":{"url":"https://api.github.com/repos/freme-project/e-Link/issues/50","labels_url":"https://api.github.com/repos/freme-project/e-Link/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/freme-project/e-Link/issues/50/comments","events_url":"https://api.github.com/repos/freme-project/e-Link/issues/50/events","html_url":"https://github.com/freme-project/e-Link/issues/50","id":110611907,"number":50,"title":"Problem with template 2","user":{"login":"jnehring","id":10537540,"avatar_url":"https://avatars.githubusercontent.com/u/10537540?v=3","gravatar_id":"","url":"https://api.github.com/users/jnehring","html_url":"https://github.com/jnehring","followers_url":"https://api.github.com/users/jnehring/followers","following_url":"https://api.github.com/users/jnehring/following{/other_user}","gists_url":"https://api.github.com/users/jnehring/gists{/gist_id}","starred_url":"https://api.github.com/users/jnehring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnehring/subscriptions","organizations_url":"https://api.github.com/users/jnehring/orgs","repos_url":"https://api.github.com/users/jnehring/repos","events_url":"https://api.github.com/users/jnehring/events{/privacy}","received_events_url":"https://api.github.com/users/jnehring/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/freme-project/e-Link/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"m1ci","id":977735,"avatar_url":"https://avatars.githubusercontent.com/u/977735?v=3","gravatar_id":"","url":"https://api.github.com/users/m1ci","html_url":"https://github.com/m1ci","followers_url":"https://api.github.com/users/m1ci/followers","following_url":"https://api.github.com/users/m1ci/following{/other_user}","gists_url":"https://api.github.com/users/m1ci/gists{/gist_id}","starred_url":"https://api.github.com/users/m1ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m1ci/subscriptions","organizations_url":"https://api.github.com/users/m1ci/orgs","repos_url":"https://api.github.com/users/m1ci/repos","events_url":"https://api.github.com/users/m1ci/events{/privacy}","received_events_url":"https://api.github.com/users/m1ci/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-10-09T08:28:08Z","updated_at":"2015-10-09T08:28:08Z","closed_at":null,"body":"The CURL command in the attachment produces this error:\r\n\r\n```\r\n{\r\n  \"exception\": \"eu.freme.broker.exception.InternalServerErrorException\",\r\n  \"path\": \"/e-link/documents/\",\r\n  \"message\": \"Unknown problem. Please contact us.\",\r\n  \"error\": \"Internal Server Error\",\r\n  \"status\": 500,\r\n  \"timestamp\": 1444379042704\r\n}\r\n```\r\n\r\nIt works with other templates then template 2 so I assume this error lies within the template.\r\n\r\nThe logfile has this message:\r\n```\r\nERROR   2015-10-09 10:27:21,769 [http-nio-8084-exec-9] eu.freme.broker.eservices.BaseRestController  - Internal service problem. Please contact the service provider.\r\neu.freme.common.exception.BadRequestException: It seems your SPARQL template is not correctly defined.\r\n        at eu.freme.eservices.elink.api.DataEnricher.enrichNIF(DataEnricher.java:90)\r\n        at eu.freme.broker.eservices.ELink.enrich(ELink.java:114)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62\r\n```\r\n\r\n[curl-template-2.txt](https://github.com/freme-project/e-Link/files/10608/curl-template-2.txt)"}}