You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of china GFW, I should use http proxy or socket proxy with google services.
I try to set export https_proxy=http://127.0.0.1:8888;export http_proxy=http://127.0.0.1:8888 (my system proxy path) in script filter ,but it not work.
I try the translate script in cmdline with "export my proxy", but it also not work and return
Sorry for the (very) late reply, but in case that you're still stuck in this problem (or for anyone that found this with the same problem), I'll try to leave some information that I know (and update them if I learned more) :)
The internet connection to Google Translate is handled by (wrapped side) the google-translate-api package, and google-translate-api uses got. There is an example on using got with proxies, but it seems that you need to modify the source code in google-translate-api to get things working.
Because of china GFW, I should use http proxy or socket proxy with google services.
I try to set
export https_proxy=http://127.0.0.1:8888;export http_proxy=http://127.0.0.1:8888
(my system proxy path) in script filter ,but it not work.I try the translate script in cmdline with "export my proxy", but it also not work and return
So I realized the script didn't use my proxy.
My proxy works fine with curl or git (github also blocked by GFW) in cmd line. may be nodejs has other way to use proxy?
I don't know how to code with nodejs, hope you can help .
thanks.
The text was updated successfully, but these errors were encountered: