Closed
Bug 1014992
Opened 11 years ago
Closed 8 years ago
GengoConfigurationError needs better handling
Categories
(Input :: General, defect)
Input
General
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: willkg, Unassigned)
Details
(Whiteboard: u=dev c=translations p= s=)
Only production has Gengo keys--stage and dev do not. Thus any time someone does gengo_machine translation on stage and dev, it throws an error in the celery task and emails me.
We need to handle this better.
| Reporter | ||
Comment 1•11 years ago
|
||
Task fjord.translations.tasks.translate_task with id 083d425b-5b11-40a1-ae09-eb4533f11ba1 raised exception:
'GengoConfigurationError()'
Task was called with args: ('fjord.feedback.models:Response:397', 'gengo_machine', u'es-ES', 'description', u'en-US', 'translated_description') kwargs: {}.
The contents of the full traceback was:
Traceback (most recent call last):
File "/data/www/input.allizom.org/input/vendor/src/celery/celery/task/trace.py", line 233, in trace_task
R = retval = fun(*args, **kwargs)
File "/data/www/input.allizom.org/input/vendor/src/celery/celery/task/trace.py", line 420, in __protected_call__
return self.run(*args, **kwargs)
File "/data/www/input.allizom.org/input/fjord/translations/tasks.py", line 38, in translate_task
translate(instance, system, src_lang, src_field, dst_lang, dst_field)
File "/data/www/input.allizom.org/input/fjord/translations/utils.py", line 65, in translate
trans_system.translate(instance, src_lang, src_field, dst_lang, dst_field)
File "/data/www/input.allizom.org/input/fjord/translations/models.py", line 148, in translate
translated = gengo_api.get_machine_translation(instance.id, text)
File "/data/www/input.allizom.org/input/fjord/translations/gengo_utils.py", line 49, in _requires_keys
raise GengoConfigurationError()
GengoConfigurationError
| Reporter | ||
Comment 2•11 years ago
|
||
No good solution comes to mind, so I'm going to push this off.
Whiteboard: u=dev c=translations p= s=input.2014q2 → u=dev c=translations p= s=input.2014q3
| Reporter | ||
Updated•11 years ago
|
Whiteboard: u=dev c=translations p= s=input.2014q3 → u=dev c=translations p= s=input.2014q4
| Reporter | ||
Comment 3•11 years ago
|
||
I'm pushing this to the backlog since this isn't crucial and this quarter is feeling pretty full.
Whiteboard: u=dev c=translations p= s=input.2014q4 → u=dev c=translations p= s=
Comment 4•8 years ago
|
||
The Input service has been decommissioned (see bug 1315316) and has been replaced by a redirect to an external vendor (SurveyGizmo). I'm bulk WONTFIXing Input bugs that do not appear to be relevant anymore.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•