Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft Translator Https ConnectionError (Docker only?) #4229

Closed
Kyuuu opened this issue Jul 27, 2020 · 5 comments
Closed

Microsoft Translator Https ConnectionError (Docker only?) #4229

Kyuuu opened this issue Jul 27, 2020 · 5 comments
Labels
question This is more a question for the support than an issue. wontfix Nobody will work on this.

Comments

@Kyuuu
Copy link
Contributor

Kyuuu commented Jul 27, 2020

Describe the bug

With the newest update via Docker (Weblate 4.1.1) in every language this popup appears:

Żądanie tłumaczenia maszynowego przy użyciu Microsoft Translator nie powiodło się: ConnectionError(MaxRetryError("HTTPSConnectionPool(host='westeurope.https', port=443): Max retries exceeded with url: //link.cognitiveservices.azure.com//sts/v1.0/issueToken?Subscription-Key=token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ff1926c5048>: Failed to establish a new connection: [Errno -2] Name or service not known'))"))

Additional context
Google translate works fine:

image


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@nijel
Copy link
Member

nijel commented Jul 28, 2020

host='westeurope.https'

Looks wrong, maybe wrong setting for MT_MICROSOFT_ENDPOINT_URL. You probably don't need this one unless you are in China.

@nijel nijel added the question This is more a question for the support than an issue. label Jul 28, 2020
@github-actions
Copy link

This issue looks like a support question. We try to answer these reasonably fast, but in case you are looking for faster resolution, please consider purchasing support subscription and make Weblate stronger.

@Kyuuu
Copy link
Contributor Author

Kyuuu commented Jul 28, 2020

Our MT_MICROSOFT_ENDPOINT_URL starts with "https://" which is missing in the error message (it starts with //), which would result in "[Errno -2] Name or service not known" as the protocol is missing from URL.
Since it began with the latest docker update (and was working fine before) it seems that something changed in regard to reading that setting from settings-override.py

@nijel
Copy link
Member

nijel commented Jul 28, 2020

MT_MICROSOFT_ENDPOINT_URL should be just domain name.

This setting did not exist prior to 4.1, so maybe that's why it didn't cause anything. It was introduced by f95b8a5 via #3916

@stale
Copy link

stale bot commented Aug 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix Nobody will work on this. label Aug 8, 2020
@stale stale bot closed this as completed Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is more a question for the support than an issue. wontfix Nobody will work on this.
Projects
None yet
Development

No branches or pull requests

2 participants