Page MenuHomePhabricator

Google and Yandex Translate are not available from cxserver
Closed, ResolvedPublic

Description

I'm trying to translate the section of the article https://en.wikipedia.org/wiki/Akhtubinsk to the Serbian Wikipedia page, via section translation.
I'm unable to retrieve translations from Google and Yandex Translate services, only Mint.

The browser console is showing these errors:

Failed to load resource: the server responded with a status of 500 ()
Google:1 
 
 Failed to load resource: the server responded with a status of 500 ()
requests.js:1 
 
 POST https://cxserver.wikimedia.org/v2/translate/en/sr/Google 500 (Internal Server Error)
requests.js:1 
 
 POST https://cxserver.wikimedia.org/v2/translate/en/sr/Google 500 (Internal Server Error)
requests.js:1 
 
 POST https://cxserver.wikimedia.org/v2/translate/en/sr/Google 500 (Internal Server Error)
requests.js:1 
 
 POST https://cxserver.wikimedia.org/v2/translate/en/sr/Yandex 500 (Internal Server Error)
requests.js:1 
 
 POST https://cxserver.wikimedia.org/v2/translate/en/sr/Google 500 (Internal Server Error)

Event Timeline

Kizule triaged this task as High priority.Feb 27 2024, 2:56 PM

Because I don't think that this is only happening to me.

It seems that 500s are happening with errors like: https://logstash.wikimedia.org/app/discover#/doc/logstash-*/logstash-k8s-1-7.0.0-1-2024.02.27?id=ml85640B1Aouzw__b1dc

TypeError: Cannot read properties of undefined (reading 'code')
    at /srv/service/lib/mt/Google.js:95:35
    at tryCatcher (/srv/service/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/srv/service/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/srv/service/node_modules/bluebird/js/release/promise.js:604:18)

which in turn are not 500s, but service not able to return the correct error code.

KartikMistry claimed this task.

Yes. Thanks @RhinosF1 Closing this task now.

Yup, it works now, thank you!

This was most likely related to T358597

@KartikMistry this data was available when looking at https://grafana.wikimedia.org/d/F7rttgqmz/cxserver?orgId=1&refresh=30s&from=now-2d&to=now&viewPanel=43

I suggest we figure out a way to make it more visible when cxserver's 500x errors relate to external provider unavailability. For instance, making the error logged more straight forward like "Unable to reach Google".