These are chat archives for synrc/n2o

27th
Nov 2015
Roman
@AstRonin
Nov 27 2015 06:49
Now I getting error 'Apps couldn't be loaded: [hackney]'
Namdak Tonpa
@5HT
Nov 27 2015 06:49
try application:start(hackney).
and you'll see a reason
Roman
@AstRonin
Nov 27 2015 06:52
strange... app has started, and returned ok
after last command...
Namdak Tonpa
@5HT
Nov 27 2015 06:55
ok I'll try
==> dependency: "git://github.com/benoitc/hackney.git" tag: {branch,"master"}
==> dependency: "https://github.com/benoitc/erlang-idna" tag: {tag,"1.0.2"}
==> dependency: "https://github.com/benoitc/mimerl" tag: {tag,"1.0.0"}
==> dependency: "https://github.com/certifi/erlang-certifi" tag: {tag,"0.3.0"}
==> dependency: "https://github.com/deadtrickster/ssl_verify_hostname.erl" tag: {tag,
                                                                                 "1.0.5"}
mamamia
5 libs to make an HTTP request
$ mad com
==> "erlydtl"
==> "nitro"
==> "mad"
==> "sh"
==> "fs"
==> "hackney"
==> "idna"
Compiling /deps/idna/src/punycode.erl
Compiling /deps/idna/src/idna_unicode_data.erl
Compiling /deps/idna/src/idna_unicode.erl
Compiling /deps/idna/src/idna_ucs.erl
Compiling /deps/idna/src/idna.erl
==> "mimerl"
Compiling /deps/mimerl/src/mimerl.erl
Writing /deps/mimerl/ebin/mimerl.app
==> "certifi"
Compiling /deps/certifi/src/certifi_weak.erl
Compiling /deps/certifi/src/certifi_cacerts.erl
Compiling /deps/certifi/src/certifi.erl
Writing /deps/certifi/ebin/certifi.app
==> "ssl_verify_hostname"
Compiling /deps/ssl_verify_hostname/src/ssl_verify_hostname.erl
Writing /deps/ssl_verify_hostname/ebin/ssl_verify_hostname.app
Compiling /deps/hackney/src/socket/hackney_tcp_transport.erl
Compiling /deps/hackney/src/socket/hackney_ssl_transport.erl
Compiling /deps/hackney/src/socket/hackney_socks5.erl
Compiling /deps/hackney/src/socket/hackney_pool_handler.erl
Compiling /deps/hackney/src/socket/hackney_pool.erl
Compiling /deps/hackney/src/socket/hackney_http_connect.erl
Compiling /deps/hackney/src/socket/hackney_connect.erl
Compiling /deps/hackney/src/metrics/hackney_folsom_metrics.erl
Compiling /deps/hackney/src/metrics/hackney_exometer_metrics.erl
Compiling /deps/hackney/src/metrics/hackney_dummy_metrics.erl
Compiling /deps/hackney/src/http/hackney_url.erl
Compiling /deps/hackney/src/http/hackney_response.erl
Compiling /deps/hackney/src/http/hackney_request.erl
Compiling /deps/hackney/src/http/hackney_multipart.erl
Compiling /deps/hackney/src/http/hackney_http.erl
Compiling /deps/hackney/src/http/hackney_headers.erl
Compiling /deps/hackney/src/http/hackney_date.erl
Compiling /deps/hackney/src/http/hackney_cookie.erl
Compiling /deps/hackney/src/http/hackney_bstr.erl
Compiling /deps/hackney/src/hackney_util.erl
Compiling /deps/hackney/src/hackney_trace.erl
Compiling /deps/hackney/src/hackney_sup.erl
Compiling /deps/hackney/src/hackney_stream.erl
Compiling /deps/hackney/src/hackney_manager.erl
Compiling /deps/hackney/src/hackney_app.erl
Compiling /deps/hackney/src/hackney.erl
Writing /deps/hackney/ebin/hackney.app
==> "active"
==> "rest"
==> "n2o"
==> "jsone"
==> "cowboy"
==> "cowlib"
==> "ranch"
==> "gproc"
==> "kvs"
==> "/Users/5HT/depot/synrc/n2o/samples"
==> "/Users/5HT/depot/synrc/n2o/samples/apps"
==> "/Users/5HT/depot/synrc/n2o/samples/apps/review"
OK
now
Alex Popov
@aseidlitz
Nov 27 2015 06:56
@AstRonin yes, I noticed the same issue. After adding hackney_pool to the app I had to start hackney manually with hackney:start(). After that everything works.
Namdak Tonpa
@5HT
Nov 27 2015 06:57
ok
the problem is in wrong ordering
because hackney doesn't explicitly defines the dependency on ssl_verify_hostname
$ cat .applist
[kernel,stdlib,fs,ranch,compiler,syntax_tools,asn1,idna,mimerl,certifi,mnesia,inets,gproc,crypto,kvs,cowlib,public_key,cowboy,ssl,n2o,review,active,erlydtl,jsone,mad,nitro,rest,sh,ssl_verify_hostname,hackney]
e.g. having placed hackney to the end of list one may observe following:
> application:which_applications().
[{hackney,"simple HTTP client","1.4.6"},
 {ssl_verify_hostname,[],"1.0.5"},
everything is ok
maybe in mad we should also react on included_applications
Namdak Tonpa
@5HT
Nov 27 2015 07:03
fixed
try new hackney compatible mad
:-)
Roman
@AstRonin
Nov 27 2015 07:07
ibrowse esiest...
now will try
Alex Popov
@aseidlitz
Nov 27 2015 07:14
@5HT tested new mad (670539) with n2o+hackney. it works.
Thanks!
Roman
@AstRonin
Nov 27 2015 07:27
yes, very good :)
thanks for helping :)
Namdak Tonpa
@5HT
Nov 27 2015 08:05
do you have big .applist ?
Alex Popov
@aseidlitz
Nov 27 2015 08:09
$ cat .applist [kernel,stdlib,compiler,syntax_tools,certifi,idna,mimerl,asn1,gproc,ranch,crypto,cowlib,erlydtl,public_key,cowboy,ssl,n2o,ssl_verify_hostname,skel,hackney]
Namdak Tonpa
@5HT
Nov 27 2015 08:09
do you use n2o in production?
Alex Popov
@aseidlitz
Nov 27 2015 08:10
not yet, its a hobby project
wish I would have more time to work on it...
Roman
@AstRonin
Nov 27 2015 08:29
I will start n2o in prod soon
Namdak Tonpa
@5HT
Nov 27 2015 13:33
cool AstRonin, everyone who will start n2o in production auto receive private support forall synrc apps
Roman
@AstRonin
Nov 27 2015 13:46
super :)