Snawoot / windscribe-proxy

Standalone client for proxies of Windscribe browser extension
MIT License
162 stars 19 forks source link

Cold init failed #8

Closed Tutorialwork closed 2 years ago

Tutorialwork commented 2 years ago

Hey, when I'm trying to start the binary I get this error.

MAIN    : 2022/07/02 15:30:25 main.go:122: INFO     windscribe-proxy client version v1.0.3 is starting...
MAIN    : 2022/07/02 15:30:25 main.go:189: WARNING  Failed to load client state: open wndstate.json: no such file or directory. Performing cold init...
MAIN    : 2022/07/02 15:30:25 main.go:192: CRITICAL Cold init failed: bad http status: 400 Bad Request, headers: http.Header{"Access-Control-Allow-Headers":[]string{"Origin, X-Requested-With, Content-Type, Accept"}, "Access-Control-Allow-Origin":[]string{"*"}, "Cache-Control":[]string{"no-cache, no-store, max-age=0, must-revalidate"}, "Cf-Cache-Status":[]string{"DYNAMIC"}, "Cf-Railgun":[]string{"66c04fc055 stream 0.000000 0212 57da"}, "Cf-Ray":[]string{"7247bc64f988bb32-FRA"}, "Connection":[]string{"keep-alive"}, "Content-Type":[]string{"text/html; charset=UTF-8"}, "Date":[]string{"Sat, 02 Jul 2022 13:30:25 GMT"}, "Expect-Ct":[]string{"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""}, "Server":[]string{"cloudflare"}, "Strict-Transport-Security":[]string{"max-age=16000000; includeSubDomains; preload;"}}

and in the docker container I get an endless loop of this error.

MAIN    : 2022/07/02 13:32:56 main.go:122: INFO     windscribe-proxy client version v1.0.3-1-g130ecb8 is starting...
MAIN    : 2022/07/02 13:32:56 main.go:189: WARNING  Failed to load client state: open /state/wndstate.json: no such file or directory. Performing cold init...
MAIN    : 2022/07/02 13:33:06 main.go:192: CRITICAL Cold init failed: Post "https://api.windscribe.com/RegToken?platform=chrome": context deadline exceeded

Any ideas?

Thanks

Snawoot commented 2 years ago

Hi!

Likely you have datacenter IP or something like that and you're getting denied by windscribe API. Though, you can run windscribe-proxy on some residential IP (like home IP) and get wndstate.json and then use it with windscribe-proxy in any location.