kintone-labs / cli-kintone

GNU General Public License v2.0
49 stars 22 forks source link

We can't run cli-kintone from Mac OS under proxy environment. #32

Closed TomokoMiyake closed 6 years ago

TomokoMiyake commented 6 years ago

Condition

  1. Install the latest cli-kintone to the client PC

  2. Set the proxy below on Mac terminal export http_proxy={proxy url} export https_proxy="${http_proxy}" export HTTP_PROXY="${http_proxy}" export HTTPS_PROXY="${http_proxy}" export no_proxy=127.0.0.1,localhost

  3. Run the cli-kintone ex) ./cli-kintone -d bozuman -u {subdomain} -p password -a {appId}

Result

The following error occurs. Get {subdomain} http: error connecting to proxy {proxy url} : dial tcp: no suitable address found

*I have already checked this occurs on Mac PC. Maybe it will occur on another UNIX environment (I haven't checked yet).

Possible causes

I guess the go version to build cli-kintone is the cause of it. The detail of it is the below update on unix environment(src/net/dnsclient_unix.go). > DNS resolving of .local. https://go-review.googlesource.com/c/go/+/27250 It's just unix update, so it doesn't occur on windows environment.

From the above, it depends on the go version, so could you try to re-build cli-kintone by latest go version(1.9.3)? Thanks.

cy-kaneko commented 6 years ago

Fixes in v0.9.1