freme-project / e-services

Apache License 2.0
1 stars 1 forks source link

e-terminology request breaks #47

Closed fsasaki closed 7 years ago

fsasaki commented 7 years ago

See

curl -X POST "https://api-dev.freme-project.eu/current/e-terminology/tilde?source-lang=en&target-lang=es&mode=full&intype=url&input=http://www.bbc.com/news/magazine-36992955&informat=text/html"

The error message is

{ "exception": "eu.freme.common.exception.ExternalServiceFailedException", "path": "/e-terminology/tilde", "message": "External service failed: {\"Message\":\"TErminology Internal server error. Reason: StringParser failed to parse the RDF string correctly, StringParser auto-detection guessed 'Turtle' but this failed to parse. RDF string may be malformed or StringParser may have guessed incorrectly\"}", "error": "Bad Gateway", "status": 502, "timestamp": 1476272584878 }

andish commented 7 years ago

Hmm, error message says than input not in correct NIF turtle For Tilde endpoint.

~~What is this - intype=url? Does the FREME server support such input type?~~ OK, I got. Confused with informat.

This means that I need to know the NIF document submitted to Tilde.

fsasaki commented 7 years ago

See

curl -X POST --header "Accept: text/n3" "https://api-dev.freme-project.eu/current/toolbox/nif-converter?intype=url&input=http://www.bbc.com/news/magazine-36992955&informat=text/html"

and attachment. input.txt

andish commented 7 years ago

Fixed, please check.

fsasaki commented 7 years ago

works, thanks!