500 error on API calls


#1

Hello,
We are using your API, but we face an issue with some requests that through us unexpected result its 500 error
see this curl please:
% curl -H “Content-Type: application/json” -X POST -d ‘{“input”:“hello”,“source”:“auto”,“target”:“fr”,“key”:“MY-KEY”}’ https://api-platform.systran.net/translation/text/translate
{“error”:{“message”:“Route not found for service({accountId: 129693, profileId: 0, service: Translate_sq_fr})”,“info”:{“domain”:“translation/systran_saas”,“statusCode”:500,“details”:“No Queue defined for Route({accountId: 129693, profileId: 0, service: Translate_sq_fr})”},“statusCode”:500}}%

while similar request handle if we set the source language = “en”
% curl -H “Content-Type: application/json” -X POST -d ‘{“input”:“hello”,“source”:“en”,“target”:“fr”,“key”:“mykey”}’ https://api-platform.systran.net/translation/text/translate
{“outputs”:[{“output”:“bonjour”,“stats”:{“elapsed_time”:35,“nb_characters”:5,“nb_tokens”:1,“nb_tus”:1,“nb_tus_failed”:0}}]}%
please support us with solution of this issue !


#2

Hi,

This error may happened with “source=auto” and input text is too short, API couldn’t detect the language, and return 500 error.