Closed Bug 1032967 Opened 11 years ago Closed 11 years ago

[traceback] GengoError: language service not supported

Categories

(Input Graveyard :: Submission, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: willkg)

Details

(Whiteboard: u=analyzer c=translations p=1 s=input.2014q3)

Getting these for a job to translate something from Greek (el) to English (en): Traceback (most recent call last): File "/data/input/src/input.mozilla.org/input/vendor/src/django/django/core/management/base.py", line 222, in run_from_argv self.execute(*args, **options.__dict__) File "/data/input/src/input.mozilla.org/input/vendor/src/django/django/core/management/base.py", line 255, in execute output = self.handle(*args, **options) File "/data/input/src/input.mozilla.org/input/fjord/translations/management/commands/translation_sync.py", line 25, in handle system.push_translations() File "/data/input/src/input.mozilla.org/input/fjord/translations/models.py", line 552, in push_translations resp = gengo_api.human_translate_bulk(batch) File "/data/input/src/input.mozilla.org/input/fjord/translations/gengo_utils.py", line 72, in _requires_keys return fun(self, *args, **kwargs) File "/data/input/src/input.mozilla.org/input/fjord/translations/gengo_utils.py", line 283, in human_translate_bulk resp = self.gengo_api.postTranslationJobs(jobs=payload) File "/data/input/src/input.mozilla.org/input/vendor/src/gengo-python/gengo/gengo.py", line 293, in get next()[0]['code']) GengoError: '<job_36: language service not supported> ' Need to fix that.
Grabbing this now to work on. getServiceLanguages says they handle Greek just fine, so that's not helpful. GengoError is a generic exception thrown for any kind of error from the API endpoint, so that's not helpful. There's an error code in GengoError. If it's throwing a specific error code that's specifically about this error, then I can handle it. Otherwise, I'm not entirely sure what to do short of maintaining a list of "known-bad languages".
Assignee: nobody → willkg
Whiteboard: u=user c=translations p= s=input.2014q3
Whiteboard: u=user c=translations p= s=input.2014q3 → u=analyzer c=translations p= s=input.2014q3
They have another endpoint that returns valid pairs. I think I can use that to fix this: http://developers.gengo.com/v2/api_methods/service/#language-pairs-get
Pushed to prod just now. I have to wait for the cron job to kick off before I know whether that fixed it, so I'm going to mark it FIXED now and reopen if there are issues.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
This was a P2 so as to stop the errors.
Priority: -- → P2
Whiteboard: u=analyzer c=translations p= s=input.2014q3 → u=analyzer c=translations p=1 s=input.2014q3
Oops--retro-actively made this 1 point. Pretty sure that's about how much work I did.
Product: Input → Input Graveyard

our website https://japanesetrans.com site menu not appear correctly on some times with Firefox

You need to log in before you can comment on or make changes to this bug.