-
Notifications
You must be signed in to change notification settings - Fork 202
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
[Bug]: translator server - google: language map is empty so getting error "Unsupported from_language[ar] in []" #144
Comments
See #142 |
@SteniMariyaThomas |
@UlionTse Yes the version is 5.8.3. Issue exists in previous version also |
@SteniMariyaThomas Try |
|
@ManuelSchneid3r Bro, you should update version, v5.8.5 shouldn't show errors like yours. |
|
Its 5.8.3 |
@ManuelSchneid3r Why? Which country or region are you in? Is it because Google offers different services in different regions? |
@ManuelSchneid3r Can you send me your host_html about https://translate.google.com, my email is |
both cases |
@SteniMariyaThomas Same question. |
@SteniMariyaThomas Both helps. |
@ManuelSchneid3r high-frequency request, and you? |
Nope, single request from python shell |
How can I obtain the host_html? You mean the website source code? |
@ManuelSchneid3r Yeah. |
btw bavaria backend was chosen (germany) |
@ManuelSchneid3r |
#142 Same reason? |
I dont know where the problem stems from, but its still …
|
@ManuelSchneid3r @Cabu Bros, please |
works, ty 👍 |
Debug Tips
What happened?
While translating an arabic content to english using translator server: google, I am getting error
Unsupported from_language[ar] in []
On further research I found that language_map is getting as empty.
And
urllib.parse.urlparse(r.url).hostname is consent.google.com
. Based on that while getting consent cookie input_element is emptyinput_element = et.xpath('.//input[@type="hidden"][@name="v"]')
It was working previously. Now failing to translate due to this error. I am using latest version of translators
Any help will be greatly appreciated!
APP Version
0.0.1(example)
Python Version
3.9 (Default)
Runtime Environment
Linux CentOS (Default)
Country/Region
Dubai
Relevant log output
No response
Screenshots
Code of Conduct
The text was updated successfully, but these errors were encountered: