freme-project / freme-project.github.io

Apache License 2.0
2 stars 0 forks source link

[freme-ner/datasets] create datasets fails #306

Closed bgrusdt closed 8 years ago

bgrusdt commented 8 years ago

On the full API doc , creating a dataset with the example data fails with the following error message (only fails on live) :

{
  "exception": "eu.freme.common.exception.FREMEHttpException",
  "path": "/e-entity/freme-ner/datasets",
  "message": "Error from server at http://rv2622.1blu.de/solrlive: /opt/solr/server/solr/elinker/data/index/_9fv2.fdx",
  "error": "Internal Server Error",
  "status": 500,
  "timestamp": 1476105090347
}

curl command:

curl -X POST --header 'Content-Type: text/n3' --header 'Accept: application/json' --header 'X-Auth-Token: 0796eda3-b68e-4eb9-bb8b-28dde4f5314f' -d '  <http://www.lib.ncsu.edu/ld/onld/00000326> <http://www.w3.org/2004/02/skos/core#prefLabel> "101 Communications" .' 'https://api.freme-project.eu/current/e-entity/freme-ner/datasets?name=smallTestsetxy&language=en&visibility=public'

Further, this error is shown by the developper tools:

server doesn't consume text/n3, try ["application/json"]
jnehring commented 8 years ago

looks very similar to https://github.com/freme-project/freme-ner/issues/157 but I am not sure if it is a dublicate

bgrusdt commented 8 years ago

I think it is, so we close this issue? I get the same error when I try to delete one of my datasets. This also works on the dev-version.

jnehring commented 8 years ago

Ok then lets close this.