freme-project / e-Entity

Apache License 2.0
1 stars 1 forks source link

e-Entity 502 Bad Gateway with large content #42

Closed x-fran closed 8 years ago

x-fran commented 8 years ago

This is the link I'm using:

http://api-dev.freme-project.eu/current/e-entity/freme-ner/documents?informat=text&outformat=json-ld&language=en&dataset=dbpedia

Sending large text I get 502 Bad Gateway

{
timestamp: 1440758915638
error: "Bad Gateway"
status: 502
exception: "eu.freme.broker.exception.ExternalServiceFailedException"
path: "/e-entity/freme-ner/documents"
}

Same link but with only sending "welcome to dublin" the response is 200 OK but with no entities.


{
  "@id": "http://freme-project.eu/#char=0,17",
  "@type": [
    "nif:RFC5147String",
    "nif:String",
    "nif:Context"
  ],
  "beginIndex": "0",
  "endIndex": "17",
  "nif:isString": "welcome to dublin",
  "@context": {
    "isString": {
      "@id": "http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#isString",
      "@type": "http://www.w3.org/2001/XMLSchema#string"
    },
    "endIndex": {
      "@id": "http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#endIndex",
      "@type": "http://www.w3.org/2001/XMLSchema#int"
    },
    "beginIndex": {
      "@id": "http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#beginIndex",
      "@type": "http://www.w3.org/2001/XMLSchema#int"
    },
    "nif": "http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#",
    "itsrdf": "http://www.w3.org/2005/11/its/rdf#",
    "xsd": "http://www.w3.org/2001/XMLSchema#"
  }
}

To who I have to assign this kind of issues or any other questions?

x-fran commented 8 years ago

I hope is not my fault because of the high number of requests I sent yesterday.

x-fran commented 8 years ago

Same content same parameters using dbpedia-spotlight is working just fine.

jnehring commented 8 years ago

@nilesh-c is responsible for FREME NER so I assign the ticket to him.

m1ci commented 8 years ago

@xFran how long text?

I'm running following command:

curl -X POST -d @text.txt "http://api-dev.freme-project.eu/current/e-entity/freme-ner/documents?informat=text&outformat=turtle&language=en&dataset=dbpedia" -v -H "Content-Type:"

with the following "long" text and it works:

Carrow Road is a football stadium located in Norwich, Norfolk, England, and is the home of Norwich City Football Club. The stadium is on the east side of the city, not far from Norwich railway station and the River Wensum. The club originally played at Newmarket Road before moving to The Nest. When The Nest was deemed inadequate for the size of crowds it was attracting, the Carrow Road ground, named after the road on which it is located, was purpose-built by Norwich City in just 82 days and opened on 31 August 1935. The stadium has been altered and upgraded several times during its history, including after a devastating fire that destroyed the old City Stand in 1984. Having once accommodated standing supporters, the ground has been all-seater since 1992, with a current capacity of 27,244. The stadium's record attendance since becoming an all-seater ground is 27,036, set during a Premier League match versus Crystal Palace on 8 August 2015. When standing on the terraces was permitted, Carrow Road saw a crowd of 43,984 when hosting Leicester City for an FA Cup match in 1963. Carrow Road has also hosted under-21 international football and a number of concerts, including performances by Elton John and George Michael.

can you please check again?

x-fran commented 8 years ago

the string length was 3424 chars but now is working.