Closed matus753 closed 6 years ago
hi,
try to set http_proxy
env. var
https://github.com/apiaryio/apiary-client/blob/master/lib/apiary/command/publish.rb#L23
thank you,
the problem was in the variable name, i was setting up HTTPS_PROXY meanwhile client search for variable http_proxy
Hello,
I'm trying to publish apiary content stored in gitlab by gitlab-runner using docker I did set up proxy in the enviroment of running docker container, i even try curl from it to https://api.apiary.io and it was working, but after i run
apiary publish --api-name="****"
i always end up with error:warning: Overriding "Content-Type" header "text/plain" with "application/x-www-form-urlencoded" due to payload /usr/local/lib/ruby/2.5.0/net/http.rb:939:in'
rescue in block in connect': Failed to open TCP connection to api.apiary.io:443 (getaddrinfo: Name or service not known) (SocketError) from /usr/local/lib/ruby/2.5.0/net/http.rb:936:in
block in connect' from /usr/local/lib/ruby/2.5.0/timeout.rb:93:inblock in timeout' from /usr/local/lib/ruby/2.5.0/timeout.rb:103:in
timeout' from /usr/local/lib/ruby/2.5.0/net/http.rb:935:inconnect' from /usr/local/lib/ruby/2.5.0/net/http.rb:920:in
do_start' from /usr/local/lib/ruby/2.5.0/net/http.rb:909:instart' from /usr/local/bundle/gems/rest-client-2.0.2/lib/restclient/request.rb:715:in
transmit' from /usr/local/bundle/gems/rest-client-2.0.2/lib/restclient/request.rb:145:inexecute' from /usr/local/bundle/gems/rest-client-2.0.2/lib/restclient/request.rb:52:in
execute' from /usr/local/bundle/gems/rest-client-2.0.2/lib/restclient.rb:71:inpost' from /usr/local/bundle/gems/apiaryio-0.11.1/lib/apiary/command/publish.rb:75:in
query_apiary' from /usr/local/bundle/gems/apiaryio-0.11.1/lib/apiary/command/publish.rb:52:inpublish_on_apiary' from /usr/local/bundle/gems/apiaryio-0.11.1/lib/apiary/command/publish.rb:40:in
execute' from /usr/local/bundle/gems/apiaryio-0.11.1/lib/apiary/cli.rb:47:inpublish' from /usr/local/bundle/gems/thor-0.19.4/lib/thor/command.rb:27:in
run' from /usr/local/bundle/gems/thor-0.19.4/lib/thor/invocation.rb:126:ininvoke_command' from /usr/local/bundle/gems/thor-0.19.4/lib/thor.rb:369:in
dispatch' from /usr/local/bundle/gems/thor-0.19.4/lib/thor/base.rb:444:instart' from /usr/local/bundle/gems/apiaryio-0.11.1/bin/apiary:5:in
<top (required)>' from /usr/local/bundle/bin/apiary:23:inload' from /usr/local/bundle/bin/apiary:23:in