Skip to content

Hope work with http proxy #3

@tinytub

Description

@tinytub

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

./translate.js en zh-CN queue 简体中文

(node:4499) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: connect ETIMEDOUT 74.125.204.102:443

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions