{"https://b1e840c5.ngrok.io/health", "url 1", [proxy: "http://127.0.0.1:3128"]} [hackney trace 80 <0.246.0> 2019:11:03 05:00:22 4236] request Content: [{module,hackney}, {line,311}, {method,post}, {url,{hackney_url,hackney_ssl,https,<<"b1e840c5.ngrok.io">>, <<"/health">>,<<"/health">>,<<>>,<<>>, "b1e840c5.ngrok.io",443,<<>>,<<>>}}, {headers,[]}, {body,<<>>}, {options,[{proxy,<<"http://127.0.0.1:3128">>}]}] [hackney trace 60 <0.246.0> 2019:11:03 05:00:22 4236] HTTP proxy request Content: [{module,hackney},{line,620},{url,<<"http://127.0.0.1:3128">>}] [hackney trace 60 <0.246.0> 2019:11:03 05:00:22 4236] connect Content: [{module,hackney_connect}, {line,35}, {transport,hackney_http_connect}, {host,"127.0.0.1"}, {port,3128}, {dynamic,true}] [hackney trace 80 <0.246.0> 2019:11:03 05:00:22 4236] no socket in the pool Content: [{module,hackney_connect},{line,230},{pool,default}] [hackney trace 80 <0.246.0> 2019:11:03 05:00:22 4471] new connection Content: [{module,hackney_connect},{line,279}] [hackney trace 40 <0.246.0> 2019:11:03 05:00:22 4471] perform request Content: [{module,hackney_request}, {line,102}, {header_data,[<<"POST /health HTTP/1.1\r\n">>, [[<<"Host">>,": ",<<"b1e840c5.ngrok.io">>,"\r\n"], [<<"User-Agent">>,": ",<<"hackney/1.15.2">>, "\r\n"], [<<"Content-Type">>,": ", <<"application/octet-stream">>,"\r\n"], [<<"Content-Length">>,": ",<<"0">>,"\r\n"], "\r\n"]]}, {perform_all,true}, {expect,false}] [hackney trace 80 <0.246.0> 2019:11:03 05:00:22 4669] got response Content: [{module,hackney}, {line,379}, {response, {ok,200, [{<<"cache-control">>, <<"max-age=0, private, must-revalidate">>}, {<<"content-length">>,<<"5">>}, {<<"date">>,<<"Sun, 03 Nov 2019 04:59:50 GMT">>}, {<<"server">>,<<"Cowboy">>}, {<<"x-request-id">>,<<"FdOOVQML6NEuW9YAAAdC">>}], {client, {1572,757190,274605}, {metrics_ng,metrics_dummy}, hackney_http_connect,"127.0.0.1",3128, <<"127.0.0.1:3128">>, [{proxy,<<"http://127.0.0.1:3128">>}, {connect_options, [{insecure,false}, {connect_host,"b1e840c5.ngrok.io"}, {connect_port,443}, {connect_transport,hackney_ssl}, {connect_user,undefined}, {connect_pass,<<>>}]}], {hackney_ssl, {sslsocket, {gen_tcp,#Port<0.44>,tls_connection, undefined}, [<0.1067.0>,<0.1066.0>]}}, {default,#Ref<0.3398010874.2999713794.92865>, {"127.0.0.1",3128,hackney_http_connect}, <0.284.0>,hackney_http_connect}, #Ref<0.3398010874.2999713794.92865>,true, hackney_pool,5000,false,5,false,5,nil,nil, {hparser,response,4096,10,0,on_body,<<"url 1">>, {1,1}, <<>>,[],5,<<>>,<<>>,<<>>,<<>>,waiting}, {5, {dict,5,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[], []}, {{[[<<"content-length">>, {1,<<"content-length">>,<<"5">>}]], [], [[<<"date">>, {2,<<"date">>, <<"Sun, 03 Nov 2019 04:59:50 GMT">>}]], [],[], [[<<"server">>,{3,<<"server">>,<<"Cowboy">>}]], [[<<"x-request-id">>, {4,<<"x-request-id">>, <<"FdOOVQML6NEuW9YAAAdC">>}]], [[<<"cache-control">>, {0,<<"cache-control">>, <<"max-age=0, private, must-revalidate">>}]], [],[],[],[],[],[],[],[]}}}}, connected,waiting,nil,normal,false,false,false, undefined,false,fun hackney_request:send/2,waiting, nil,4096,<<>>,[], {1,1}, 5,nil,nil,<<"POST">>,<<"/health">>,nil}}}, {client, {client, {1572,757190,274605}, {metrics_ng,metrics_dummy}, hackney_http_connect,"127.0.0.1",3128, <<"127.0.0.1:3128">>, [{proxy,<<"http://127.0.0.1:3128">>}, {connect_options, [{insecure,false}, {connect_host,"b1e840c5.ngrok.io"}, {connect_port,443}, {connect_transport,hackney_ssl}, {connect_user,undefined}, {connect_pass,<<>>}]}], {hackney_ssl, {sslsocket, {gen_tcp,#Port<0.44>,tls_connection,undefined}, [<0.1067.0>,<0.1066.0>]}}, {default,#Ref<0.3398010874.2999713794.92865>, {"127.0.0.1",3128,hackney_http_connect}, <0.284.0>,hackney_http_connect}, #Ref<0.3398010874.2999713794.92865>,true,hackney_pool, 5000,false,5,false,5,nil,nil,nil, {0, {dict,0,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}, {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[], []}}}}, connected,start,nil,normal,false,false,false,undefined, false,nil,waiting,nil,4096,<<>>,[],undefined,nil,nil,nil, nil,undefined,nil}}] correct endpoint {"https://405f5948.ngrok.io/health", "url 2", [proxy: "http://127.0.0.1:3128"]} [hackney trace 80 <0.246.0> 2019:11:03 05:00:22 4673] request Content: [{module,hackney}, {line,311}, {method,post}, {url,{hackney_url,hackney_ssl,https,<<"405f5948.ngrok.io">>, <<"/health">>,<<"/health">>,<<>>,<<>>, "405f5948.ngrok.io",443,<<>>,<<>>}}, {headers,[]}, {body,<<>>}, {options,[{proxy,<<"http://127.0.0.1:3128">>}]}] [hackney trace 60 <0.246.0> 2019:11:03 05:00:22 4673] HTTP proxy request Content: [{module,hackney},{line,620},{url,<<"http://127.0.0.1:3128">>}] [hackney trace 60 <0.246.0> 2019:11:03 05:00:22 4673] connect Content: [{module,hackney_connect}, {line,35}, {transport,hackney_http_connect}, {host,"127.0.0.1"}, {port,3128}, {dynamic,true}] [hackney trace 60 <0.246.0> 2019:11:03 05:00:22 4674] reuse a connection Content: [{module,hackney_connect},{line,219},{pool,default}] [hackney trace 40 <0.246.0> 2019:11:03 05:00:22 4674] perform request Content: [{module,hackney_request}, {line,102}, {header_data,[<<"POST /health HTTP/1.1\r\n">>, [[<<"Host">>,": ",<<"405f5948.ngrok.io">>,"\r\n"], [<<"User-Agent">>,": ",<<"hackney/1.15.2">>, "\r\n"], [<<"Content-Type">>,": ", <<"application/octet-stream">>,"\r\n"], [<<"Content-Length">>,": ",<<"0">>,"\r\n"], "\r\n"]]}, {perform_all,true}, {expect,false}] correct endpoint [hackney trace 80 <0.246.0> 2019:11:03 05:00:22 4882] got response Content: [{module,hackney}, {line,379}, {response, {ok,200, [{<<"cache-control">>, <<"max-age=0, private, must-revalidate">>}, {<<"content-length">>,<<"5">>}, {<<"date">>,<<"Sun, 03 Nov 2019 04:59:50 GMT">>}, {<<"server">>,<<"Cowboy">>}, {<<"x-request-id">>,<<"FdOOVQ9EUZguW9YAAAKj">>}], {client, {1572,757190,717288}, {metrics_ng,metrics_dummy}, hackney_http_connect,"127.0.0.1",3128, <<"127.0.0.1:3128">>, [{proxy,<<"http://127.0.0.1:3128">>}, {connect_options, [{insecure,false}, {connect_host,"405f5948.ngrok.io"}, {connect_port,443}, {connect_transport,hackney_ssl}, {connect_user,undefined}, {connect_pass,<<>>}]}], {hackney_ssl, {sslsocket, {gen_tcp,#Port<0.44>,tls_connection, undefined}, [<0.1067.0>,<0.1066.0>]}}, {default,#Ref<0.3398010874.2999713793.87609>, {"127.0.0.1",3128,hackney_http_connect}, <0.284.0>,hackney_http_connect}, #Ref<0.3398010874.2999713793.87609>,true, hackney_pool,5000,false,5,false,5,nil,nil, {hparser,response,4096,10,0,on_body,<<"url 2">>, {1,1}, <<>>,[],5,<<>>,<<>>,<<>>,<<>>,waiting}, {5, {dict,5,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[], []}, {{[[<<"content-length">>, {1,<<"content-length">>,<<"5">>}]], [], [[<<"date">>, {2,<<"date">>, <<"Sun, 03 Nov 2019 04:59:50 GMT">>}]], [],[], [[<<"server">>,{3,<<"server">>,<<"Cowboy">>}]], [[<<"x-request-id">>, {4,<<"x-request-id">>, <<"FdOOVQ9EUZguW9YAAAKj">>}]], [[<<"cache-control">>, {0,<<"cache-control">>, <<"max-age=0, private, must-revalidate">>}]], [],[],[],[],[],[],[],[]}}}}, connected,waiting,nil,normal,false,false,false, undefined,false,fun hackney_request:send/2,waiting, nil,4096,<<>>,[], {1,1}, 5,nil,nil,<<"POST">>,<<"/health">>,nil}}}, {client, {client, {1572,757190,717288}, {metrics_ng,metrics_dummy}, hackney_http_connect,"127.0.0.1",3128, <<"127.0.0.1:3128">>, [{proxy,<<"http://127.0.0.1:3128">>}, {connect_options, [{insecure,false}, {connect_host,"405f5948.ngrok.io"}, {connect_port,443}, {connect_transport,hackney_ssl}, {connect_user,undefined}, {connect_pass,<<>>}]}], {hackney_ssl, {sslsocket, {gen_tcp,#Port<0.44>,tls_connection,undefined}, [<0.1067.0>,<0.1066.0>]}}, {default,#Ref<0.3398010874.2999713793.87609>, {"127.0.0.1",3128,hackney_http_connect}, <0.284.0>,hackney_http_connect}, #Ref<0.3398010874.2999713793.87609>,true,hackney_pool, 5000,false,5,false,5,nil,nil,nil, {0, {dict,0,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}, {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[], []}}}}, connected,start,nil,normal,false,false,false,undefined, false,nil,waiting,nil,4096,<<>>,[],undefined,nil,nil,nil, nil,undefined,nil}}] {"https://b1e840c5.ngrok.io/health", "url 1", [proxy: "http://127.0.0.1:3128"]} [hackney trace 80 <0.246.0> 2019:11:03 05:00:22 4892] request Content: [{module,hackney}, {line,311}, {method,post}, {url,{hackney_url,hackney_ssl,https,<<"b1e840c5.ngrok.io">>, <<"/health">>,<<"/health">>,<<>>,<<>>, "b1e840c5.ngrok.io",443,<<>>,<<>>}}, {headers,[]}, {body,<<>>}, {options,[{proxy,<<"http://127.0.0.1:3128">>}]}] [hackney trace 60 <0.246.0> 2019:11:03 05:00:22 4892] HTTP proxy request Content: [{module,hackney},{line,620},{url,<<"http://127.0.0.1:3128">>}] [hackney trace 60 <0.246.0> 2019:11:03 05:00:22 4892] connect Content: [{module,hackney_connect}, {line,35}, {transport,hackney_http_connect}, {host,"127.0.0.1"}, {port,3128}, {dynamic,true}] [hackney trace 60 <0.246.0> 2019:11:03 05:00:22 4892] reuse a connection Content: [{module,hackney_connect},{line,219},{pool,default}] [hackney trace 40 <0.246.0> 2019:11:03 05:00:22 4892] perform request Content: [{module,hackney_request}, {line,102}, {header_data,[<<"POST /health HTTP/1.1\r\n">>, [[<<"Host">>,": ",<<"b1e840c5.ngrok.io">>,"\r\n"], [<<"User-Agent">>,": ",<<"hackney/1.15.2">>, "\r\n"], [<<"Content-Type">>,": ", <<"application/octet-stream">>,"\r\n"], [<<"Content-Length">>,": ",<<"0">>,"\r\n"], "\r\n"]]}, {perform_all,true}, {expect,false}] [hackney trace 80 <0.246.0> 2019:11:03 05:00:22 4959] got response Content: [{module,hackney}, {line,379}, {response, {ok,200, [{<<"cache-control">>, <<"max-age=0, private, must-revalidate">>}, {<<"content-length">>,<<"5">>}, {<<"date">>,<<"Sun, 03 Nov 2019 04:59:50 GMT">>}, {<<"server">>,<<"Cowboy">>}, {<<"x-request-id">>,<<"FdOOVRYmyyTXuEkAAAZB">>}], {client, {1572,757190,937087}, {metrics_ng,metrics_dummy}, hackney_http_connect,"127.0.0.1",3128, <<"127.0.0.1:3128">>, [{proxy,<<"http://127.0.0.1:3128">>}, {connect_options, [{insecure,false}, {connect_host,"b1e840c5.ngrok.io"}, {connect_port,443}, {connect_transport,hackney_ssl}, {connect_user,undefined}, {connect_pass,<<>>}]}], {hackney_ssl, {sslsocket, {gen_tcp,#Port<0.44>,tls_connection, undefined}, [<0.1067.0>,<0.1066.0>]}}, {default,#Ref<0.3398010874.2999713794.92943>, {"127.0.0.1",3128,hackney_http_connect}, <0.284.0>,hackney_http_connect}, #Ref<0.3398010874.2999713794.92943>,true, hackney_pool,5000,false,5,false,5,nil,nil, {hparser,response,4096,10,0,on_body,<<"url 1">>, {1,1}, <<>>,[],5,<<>>,<<>>,<<>>,<<>>,waiting}, {5, {dict,5,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[], []}, {{[[<<"content-length">>, {1,<<"content-length">>,<<"5">>}]], [], [[<<"date">>, {2,<<"date">>, <<"Sun, 03 Nov 2019 04:59:50 GMT">>}]], [],[], [[<<"server">>,{3,<<"server">>,<<"Cowboy">>}]], [[<<"x-request-id">>, {4,<<"x-request-id">>, <<"FdOOVRYmyyTXuEkAAAZB">>}]], [[<<"cache-control">>, {0,<<"cache-control">>, <<"max-age=0, private, must-revalidate">>}]], [],[],[],[],[],[],[],[]}}}}, connected,waiting,nil,normal,false,false,false, undefined,false,fun hackney_request:send/2,waiting, nil,4096,<<>>,[], {1,1}, 5,nil,nil,<<"POST">>,<<"/health">>,nil}}}, {client, {client, {1572,757190,937087}, {metrics_ng,metrics_dummy}, hackney_http_connect,"127.0.0.1",3128, <<"127.0.0.1:3128">>, [{proxy,<<"http://127.0.0.1:3128">>}, {connect_options, [{insecure,false}, {connect_host,"b1e840c5.ngrok.io"}, {connect_port,443}, {connect_transport,hackney_ssl}, {connect_user,undefined}, {connect_pass,<<>>}]}], {hackney_ssl, {sslsocket, {gen_tcp,#Port<0.44>,tls_connection,undefined}, [<0.1067.0>,<0.1066.0>]}}, {default,#Ref<0.3398010874.2999713794.92943>, {"127.0.0.1",3128,hackney_http_connect}, <0.284.0>,hackney_http_connect}, #Ref<0.3398010874.2999713794.92943>,true,hackney_pool, 5000,false,5,false,5,nil,nil,nil, {0, {dict,0,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}, {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[], []}}}}, connected,start,nil,normal,false,false,false,undefined, false,nil,waiting,nil,4096,<<>>,[],undefined,nil,nil,nil, nil,undefined,nil}}] correct endpoint {"https://405f5948.ngrok.io/health", "url 2", [proxy: "http://127.0.0.1:3128"]} [hackney trace 80 <0.246.0> 2019:11:03 05:00:22 4962] request Content: [{module,hackney}, {line,311}, {method,post}, {url,{hackney_url,hackney_ssl,https,<<"405f5948.ngrok.io">>, <<"/health">>,<<"/health">>,<<>>,<<>>, "405f5948.ngrok.io",443,<<>>,<<>>}}, {headers,[]}, {body,<<>>}, {options,[{proxy,<<"http://127.0.0.1:3128">>}]}] [hackney trace 60 <0.246.0> 2019:11:03 05:00:22 4962] HTTP proxy request Content: [{module,hackney},{line,620},{url,<<"http://127.0.0.1:3128">>}] [hackney trace 60 <0.246.0> 2019:11:03 05:00:22 4962] connect Content: [{module,hackney_connect}, {line,35}, {transport,hackney_http_connect}, {host,"127.0.0.1"}, {port,3128}, {dynamic,true}] [hackney trace 60 <0.246.0> 2019:11:03 05:00:22 4962] reuse a connection Content: [{module,hackney_connect},{line,219},{pool,default}] [hackney trace 40 <0.246.0> 2019:11:03 05:00:22 4962] perform request Content: [{module,hackney_request}, {line,102}, {header_data,[<<"POST /health HTTP/1.1\r\n">>, [[<<"Host">>,": ",<<"405f5948.ngrok.io">>,"\r\n"], [<<"User-Agent">>,": ",<<"hackney/1.15.2">>, "\r\n"], [<<"Content-Type">>,": ", <<"application/octet-stream">>,"\r\n"], [<<"Content-Length">>,": ",<<"0">>,"\r\n"], "\r\n"]]}, {perform_all,true}, {expect,false}] [hackney trace 80 <0.246.0> 2019:11:03 05:00:23 441] got response Content: [{module,hackney}, {line,379}, {response, {ok,200, [{<<"cache-control">>, <<"max-age=0, private, must-revalidate">>}, {<<"content-length">>,<<"5">>}, {<<"date">>,<<"Sun, 03 Nov 2019 04:59:50 GMT">>}, {<<"server">>,<<"Cowboy">>}, {<<"x-request-id">>,<<"FdOOVRsF2TdaSXIAAAZh">>}], {client, {1572,757191,7903}, {metrics_ng,metrics_dummy}, hackney_http_connect,"127.0.0.1",3128, <<"127.0.0.1:3128">>, [{proxy,<<"http://127.0.0.1:3128">>}, {connect_options, [{insecure,false}, {connect_host,"405f5948.ngrok.io"}, {connect_port,443}, {connect_transport,hackney_ssl}, {connect_user,undefined}, {connect_pass,<<>>}]}], {hackney_ssl, {sslsocket, {gen_tcp,#Port<0.44>,tls_connection, undefined}, [<0.1067.0>,<0.1066.0>]}}, {default,#Ref<0.3398010874.2999713794.92991>, {"127.0.0.1",3128,hackney_http_connect}, <0.284.0>,hackney_http_connect}, #Ref<0.3398010874.2999713794.92991>,true, hackney_pool,5000,false,5,false,5,nil,nil, {hparser,response,4096,10,0,on_body,<<"url 1">>, {1,1}, <<>>,[],5,<<>>,<<>>,<<>>,<<>>,waiting}, {5, {dict,5,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[], []}, {{[[<<"content-length">>, {1,<<"content-length">>,<<"5">>}]], [], [[<<"date">>, {2,<<"date">>, <<"Sun, 03 Nov 2019 04:59:50 GMT">>}]], [],[], [[<<"server">>,{3,<<"server">>,<<"Cowboy">>}]], [[<<"x-request-id">>, {4,<<"x-request-id">>, <<"FdOOVRsF2TdaSXIAAAZh">>}]], [[<<"cache-control">>, {0,<<"cache-control">>, <<"max-age=0, private, must-revalidate">>}]], [],[],[],[],[],[],[],[]}}}}, connected,waiting,nil,normal,false,false,false, undefined,false,fun hackney_request:send/2,waiting, nil,4096,<<>>,[], {1,1}, 5,nil,nil,<<"POST">>,<<"/health">>,nil}}}, {client, {client, {1572,757191,7903}, {metrics_ng,metrics_dummy}, hackney_http_connect,"127.0.0.1",3128, <<"127.0.0.1:3128">>, [{proxy,<<"http://127.0.0.1:3128">>}, {connect_options, [{insecure,false}, {connect_host,"405f5948.ngrok.io"}, {connect_port,443}, {connect_transport,hackney_ssl}, {connect_user,undefined}, {connect_pass,<<>>}]}], {hackney_ssl, {sslsocket, {gen_tcp,#Port<0.44>,tls_connection,undefined}, [<0.1067.0>,<0.1066.0>]}}, {default,#Ref<0.3398010874.2999713794.92991>, {"127.0.0.1",3128,hackney_http_connect}, <0.284.0>,hackney_http_connect}, #Ref<0.3398010874.2999713794.92991>,true,hackney_pool, 5000,false,5,false,5,nil,nil,nil, {0, {dict,0,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}, {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[], []}}}}, connected,start,nil,normal,false,false,false,undefined, false,nil,waiting,nil,4096,<<>>,[],undefined,nil,nil,nil, nil,undefined,nil}}] wrong endpoint - url https://405f5948.ngrok.io/health, expected_response url 2, actual_response url 1 ** (RuntimeError) wrong endpoint