freme-project / pipelines

Apache License 2.0
0 stars 0 forks source link

Error 500 when using Pipelining API #30

Closed Katsivelisp closed 7 years ago

Katsivelisp commented 8 years ago

Hello guys,

we're trying to run the Pipelining API and more specifically the e-Entity - e-Link chain, but the service returns a server error (500). Even the online docs example doesn't seem to work.

I hope I posted this under the correct repository. Thank you very much in advance!

jnehring commented 8 years ago

Hey @katia-vistatec ,

can you please share more information on which pipeline you used exactly and did you use the dev or live endpoint? Maybe also the error message?

This pipeline send to curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d ' [ { "method": "POST", "endpoint": "http://api.freme-project.eu/current/e-entity/freme-ner/documents", "parameters": { "dataset": "dbpedia", "language": "en" }, "headers": { "content-type": "text/plain", "accept": "text/turtle" }, "body": "With just 200,000 residents, Reykjavík ranks as one of Europe\u0027s smallest capital cities. But when Iceland\u0027s total population only hovers around 300,000, it makes sense that the capital is known as the big city?? and offers all the cultural perks of a much larger place.\n\n From live music almost every night to cosy cafes, colourful houses and friendly cats roaming the street, Reykjavík has all the charms of a small town in a fun capital city,?? said Kaelene Spence, " }, { "method": "POST", "endpoint": "http://api.freme-project.eu/current/e-link/documents/", "parameters": { "templateid": "3" }, "headers": { "content-type": "text/turtle", "accept": "text/turtle" } } ] ' https://api-dev.freme-project.eu/current/pipelining/chain?stats=false&useI18n=undefined request works

  [
    {
      "method": "POST",
      "endpoint": "http://api.freme-project.eu/current/e-entity/freme-ner/documents",
      "parameters": {
        "dataset": "dbpedia",
        "language": "en"
      },
      "headers": {
        "content-type": "text/plain",
        "accept": "text/turtle"
      },
      "body": "With just 200,000 residents, Reykjavík ranks as one of Europe\u0027s smallest capital cities. But when Iceland\u0027s total population only hovers around 300,000, it makes sense that the capital is known as the big city?? and offers all the cultural perks of a much larger place.\n\n From live music almost every night to cosy cafes, colourful houses and friendly cats roaming the street, Reykjavík has all the charms of a small town in a fun capital city,?? said Kaelene Spence, "
    },
    {
      "method": "POST",
      "endpoint": "http://api.freme-project.eu/current/e-link/documents/",
      "parameters": {
        "templateid": "3"
      },
      "headers": {
        "content-type": "text/turtle",
        "accept": "text/turtle"
      }
    }
  ]
katia-vistatec commented 8 years ago

Hi Jan, when I used it?It is new to me. Maybe there is some other issue associated to this?

jnehring commented 8 years ago

Ups sorry I meant to point to @Katsivelisp instead of @katia-vistatec . Both names starting with kat.

katia-vistatec commented 8 years ago

ah ok!

Katsivelisp commented 8 years ago

Hello @jnehring ,

I'm sorry, false alarm. However, the first example here (for e-Entity, e-Link) doesn't seem to work when we copy and paste it.

jnehring commented 8 years ago

@bgrusdt please check the problem and fix the pipeline from this comment.

bgrusdt commented 7 years ago

The problem seems to be that this sample pipeline contains a call to dbpedia-spotlight, an external service, which does not work right now. The following example that works for me uses FREME-NER instead:

  [
    {
      "method": "POST",
      "endpoint": "https://api.freme-project.eu/current/e-entity/freme-ner/documents/",
      "parameters": {
        "language": "en",
        "dataset": "dbpedia",
        "mode": "all"
      },
      "headers": {
        "content-type": "text/plain",
        "accept": "text/turtle"
      },
      "body": "This summer there is the Zomerbar in Antwerp, one of the most beautiful cities in Belgium."
    },
    {
      "method": "POST",
      "endpoint": "http://api.freme-project.eu/current/e-link/documents/",
      "parameters": {
        "templateid": "3"
      },
      "headers": {
        "content-type": "text/turtle",
        "accept": "text/turtle"
      }
    }
  ]
jnehring commented 7 years ago

fixed!