freme-project / FREMECommon

FREME Common Codes
Apache License 2.0
0 stars 0 forks source link

e-translation/tilde 500 #38

Closed bjdmeest closed 8 years ago

bjdmeest commented 8 years ago

The following command fails:

curl 'https://api.freme-project.eu/current/e-translation/tilde?informat=text&outformat=json-ld&source-lang=en&target-lang=de' -H 'Origin: http://localhost:63343' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-GB,en-US;q=0.8,en;q=0.6' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2881.5 Safari/537.36' -H 'Content-Type: text/plain' -H 'Accept: application/json+ld' -H 'Referer: http://localhost:63343/CKEditor-Plugin/ckeditor/samples/freme.html?_ijt=jqmruku0vk9k987oo844lvbnls' -H 'Connection: keep-alive' --data-binary 'Dissident Chinese artist Ai Weiwei has been refused a six-month visa by the British government amid claims he lied on his visa application form. Ai posted a letter on Instagram stating his entry to the UK had been restricted because he failed to declare his criminal conviction. But Ai, though detained in China for 81 days in 2011, has never been charged or convicted of a crime in China. The artist was granted a 20-day visa to attend the opening of his London show.' --compressed

gives following error:

{
  "exception": "eu.freme.common.exception.ExternalServiceFailedException",
  "path": "/e-translation/tilde",
  "message": "External service failed: {\"Message\":\"MT Internal server error. Reason: Response status code does not indicate success: 400 (Error).\"}",
  "error": "Internal Server Error",
  "status": 500,
  "timestamp": 1475822713975
}
andish commented 8 years ago

Seems that FREME server is released with configuration that contains E-translation url to Tilde development environment. As this is in configuration we shouldn't wait until next release but could be changed in any time. @jnehring am I right?

jnehring commented 8 years ago

I will change this.

jnehring commented 8 years ago

I changed the Tilde MT endpoint for the live version of FREME. Above CURL works now.

@bjdmeest can you please verify and close the issue when it works?

bjdmeest commented 8 years ago

Great, thanks!