freme-project / pipelines

Apache License 2.0
0 stars 0 forks source link

[FREME live] Cannot POST new pipeline template #29

Closed andish closed 8 years ago

andish commented 8 years ago

Result is:

{
  "exception": "eu.freme.common.exception.FREMEHttpException",
  "path": "/pipelining/templates",
  "message": "could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement",
  "error": "Internal Server Error",
  "status": 500,
  "timestamp": 1462436826169
}

In development env submitted successfully. For public environment just created new user and retrieved new token.

Request:

POST /current/pipelining/templates HTTP/1.1
Host: api.freme-project.eu
Content-Type: application/json
X-Auth-Token: xxx-yyy-zzz

{
  "label": "Enrich html with entities",
  "description": "Enrich html with entities",
  "serializedRequests": [
    {
      "method": "POST",
  "endpoint": "http://api.freme-project.eu/current/e-entity/freme-ner/documents",
  "parameters": {
    "language": "en",
    "dataset" :"dbpedia"
  },
  "headers": {
    "content-type": "text/plain",
    "accept": "text/turtle"
  }
    },
    {
  "method": "POST",
  "endpoint": "http://api.freme-project.eu/current/e-link/documents/",
  "parameters": {
    "templateid": "2"
  },
  "headers": {
    "content-type": "text/turtle",
    "accept": "text/turtle"
  }
}
  ]
}
jnehring commented 8 years ago

@ArneBinder please check what is wrong here.

ArneBinder commented 8 years ago

This should be fixed. The id column of the table pipeline wasn't marked with Auto Increment. @andish please close this, if it works for you, too.