Closed Bug 1032967 Opened 9 years ago Closed 9 years ago

[traceback] GengoError: language service not supported


(Input Graveyard :: Submission, defect, P2)



(Not tracked)



(Reporter: willkg, Assigned: willkg)


(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/", line 222, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/data/input/src/", line 255, in execute
    output = self.handle(*args, **options)
  File "/data/input/src/", line 25, in handle
  File "/data/input/src/", line 552, in push_translations
    resp = gengo_api.human_translate_bulk(batch)
  File "/data/input/src/", line 72, in _requires_keys
    return fun(self, *args, **kwargs)
  File "/data/input/src/", line 283, in human_translate_bulk
    resp = self.gengo_api.postTranslationJobs(jobs=payload)
  File "/data/input/src/", line 293, in get
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:
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.
Closed: 9 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 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.