Why is my node.js etcd client getting html -
my etcd instance running locally , can perform , set using cli
// set etcdctl set /services/myservice "{\"hostname\": \"127.0.0.1\", \"port\": 3000}" //get etcdctl services/myservice // results in -> {"hostname": "127.0.0.1", "port": 3000}
but when use node-etc module
var etcd = require('node-etcd'); var etcd = new etcd(['http://localhost:2379', 'http://localhost:4001']); etc.get('services/myservice', { wait: true}, function (err, value){ console.log(err, value); });
i value html (see below) instead of same result cli. working few weeks ago not sure if have
i find when don't include hosts , use new etcd()
internal html page references proxy issues: "the requested website blocked [insert company name] proxy due potential malicious activity or other security reasons."
<!doctype html public "-//w3c//dtd html 4.01//en" "http://www.w3.org/tr/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" data-adblockkey="mfwwdqyjkozihvcnaqebbqadswawsajbakrfimfksaotsqkmc+brghk0cpdhc0muvzmmhin8liorhpxbped+iyhsnzurwneo0zckcvirzp026lvc5pmb9bucaweaaq==_mhzvoc3gbno9sxvki+5fe+e9gsbit2+mbietu+yaiw6jw6uds6vud5rskqmfuusrcw4aycrfowaawsrgdzu8pw=="> <head> <script type="text/javascript"> var abp; </script> <script type="text/javascript" src="http://www.http.com/px.js?ch=1"></script> <script type="text/javascript" src="http://www.http.com/px.js?ch=2"></script> <script type="text/javascript"> function handleabpdetect() { try { var imglog = document.createelement("img"); imglog.src = "http://www.http.com/rg-logabpstatus.php?a=wvpqoedzzlddtwo4vwf0m0pna1pbek0xqne1wvlqr2vaq0frd0v4tuxmcdavofn2wnhhys8weffeetztrhlletm0ufk3udhzemxqswfrdxlfdxpiugc9pq==&b=" + abp; document.body.appendchild(imglog); } catch (err) {} } try { window.onload = handleabpdetect(); } catch (err) {} </script> <title>http.com</title> <meta http-equiv="content-type" content="text/html; charset="> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable = no"> <style type="text/css"> * { margin: 0; padding: 0 } { text-decoration: none; outline: none } a:hover { text-indent: 0; cursor: pointer } .clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0 } * html .clearfix { zoom: 1 } *:first-child+html .clearfix { zoom: 1 } body { font-family: arial, helvetica, sans-serif; background: url(http://c.rmgserving.com/rmgpsc/7867/body-bg.gif) 0 0 repeat #000 } /*.arrows{background:url(http://b.rmgserving.com/rmgpsc/7867/arrows.jpg)}*/ #main-wrap { background: url(http://a.rmgserving.com/rmgpsc/7867/header-bg.jpg) top center no-repeat; background-size: 100% 100px } .container { width: 960px; margin: 0 auto } .header { height: 100px } /*commented new design */ /*.leftblk{float:left; overflow:hidden} .leftblk img{float: left; margin-top: 23px; padding-right: 15px;}*/ /*.domain_name{float:left; line-height:100px; font-size:26px; font-weight:normal; color:#fff}*/ .searchbox { float: right; width: 410px; * width: 420px; _width: 420px; height: 28px !important; padding-top: 2px; margin-top: 35px; /*padding-left:33px;background:url(http://d.rmgserving.com/rmgpsc/7868/srch-bg-caf2.gif) 0 0 no-repeat*/ } .content { padding-bottom: 10px; background: #202020 } /**resposive changes made here**/ .domain_name { line-height: normal; font-size: 26px; font-weight: normal; color: #fff; margin-top: 35px } .leftblk { float: left; width: 39%; word-wrap: break-word; background: url(http://c.rmgserving.com/rmgpsc/7867/logo1.png) no-repeat center left; padding-left: 70px; height: 100px; overflow: hidden; } .frt_arr { float: left; width: 30%; height: 425px; background: url(http://d.rmgserving.com/rmgpsc/7983/frst_arr.jpg); background-position: 10px 70px; background-repeat: no-repeat; background-size: 90% } .lst_arr { float: left; width: 30%; height: 425px; background: url(http://b.rmgserving.com/rmgpsc/7983/last_arr.jpg); background-position: 0px 70px; background-repeat: no-repeat; background-size: 90% } .kwd_bloack { float: left; width: 40%; margin-top: 74px } /**resposive changes end here**/ .bottom_bg { height: 44px; /*background:#181818; */ margin-top: 34px } .bottom_rs { width: 960px; height: 44px; overflow: hidden; margin: 0 auto; position: relative } #bot_rs { padding-top: 9px } .separator { position: absolute; top: 0; left: 156px; width: 5px; height: 44px; border-left: 2px solid #282828; background: url(http://a.rmgserving.com/rmgpsc/7867/sep-arw.gif) center center no-repeat } .footer-nav { width: 100%; height: 74px; text-align: center; color: #c0c0c0; } .footer-nav { font-size: 12px; line-height: 74px; color: #c0c0c0; padding: 0 5px; text-decoration: underline } .footer-nav a:hover { text-decoration: none } .inquire { text-align: right; padding-top: 10px; color: #fff } .inquire { font-size: 12px; font-weight: normal; color: #fff } .sale-msg { background: #fff; color: #4b4b4b; text-align: center; font-size: 14px; width: 100%; top: 0; left: 0 } .sale-msg { text-decoration: none; color: #079ce9; font-size: 14px; } .sale-msg a:hover, .bottom_rs ul li a:hover, .mid_rs ul li a:hover, .inquire a:hover { text-decoration: underline } @media not , (min-width: 970px) { .container { width: 95% } .bottom_bg { display: none } .footer-nav { line-height: 45px } } @media not , (min-width: 840px) { .frt_arr { display: none } .lst_arr { display: none } .kwd_bloack { float: none; width: 95%; margin: 0 auto; padding-top: 10px } .leftblk { float: none; height: 50px; background-size: 35px; padding-left: 50px; width: auto } .domain_name { line-height: normal; font-size: 20px; margin-top: 0; padding-top: 15px } .searchbox { float: none; margin-top: 10px; padding-top: 0; width: auto; } } </style> <script type="text/javascript" src="http://www.google.com/adsense/domains/caf.js"></script> </head> <body onload="" onunload="" onbeforeunload=""> <noscript> <meta http-equiv="refresh" content="0;url=http://www.http.com/rg-erdr.php?_rpo=t ntzzffi&_rdm=9f1njxf43bjvmfnf4.jvv&p=j1c4gcvmfn9fffgofgxoyva%7c%40%7cbzgzte%2c5f95zbt%2c5f95et%7c%40%7cx55g.jvv%7c%40%7c%7c%40%7c%7c%40%7czzbhzezhe%7c%40%7czhzzfth%7c%40%7ck-%7c%40%7c19c4nw4cgfhztettegzgztbt%7c%40%7ct+nh8llbj%7c%40%7ct+7zfzkfh&ga=5rki1sssbwfmmny4rdxg%2bb7vs0yzngnq9jphpslhssvfu0nyshpfxwu0exobfao5idfzqrtzujczjrxonxp3pxtpv7ezer14zh7kwg69e5lf08niagsfukiybsbybiqgw92x314xjqy5h09a65wi7jihzrlv0preub%2f7smvqucnleg70qvvfr7kkytx9z4no&t=gnojs" /> <center> <p style="padding:1em; font-size:1.5em;">for search results please <a href="http://www.http.com/rg-erdr.php?_rpo=t ntzzffi&_rdm=9f1njxf43bjvmfnf4.jvv&p=j1c4gcvmfn9fffgofgxoyva%7c%40%7cbzgzte%2c5f95zbt%2c5f95et%7c%40%7cx55g.jvv%7c%40%7c%7c%40%7c%7c%40%7czzbhzezhe%7c%40%7czhzzfth%7c%40%7ck-%7c%40%7c19c4nw4cgfhztettegzgztbt%7c%40%7ct+nh8llbj%7c%40%7ct+7zfzkfh&ga=5rki1sssbwfmmny4rdxg%2bb7vs0yzngnq9jphpslhssvfu0nyshpfxwu0exobfao5idfzqrtzujczjrxonxp3pxtpv7ezer14zh7kwg69e5lf08niagsfukiybsbybiqgw92x314xjqy5h09a65wi7jihzrlv0preub%2f7smvqucnleg70qvvfr7kkytx9z4no&t=gnojs" style="text-decoration:underline; color:#0000ee;">click here</a>.</p> </center> </noscript> <script type="text/javascript" language="javascript"> function __gpup(url, height, width, name) { sw = window.open(url, name, 'height=' + height + ',width=' + width + ',location=no,toolbar=0,resizable=1,scrollbars=1'); if (window.focus) { sw.focus() }; return false; }; </script> <script text="text/javascript"> var design = { 'pageoptions': { 'pubid': '', 'resultspagebaseurl': '', 'fontfamily': 'arial', 'hl': 'en', 'maxtermlength': 29, 'adtest': 'on', 'clicktrackurl': '', 'fontfamilyattribution': 'arial', 'type': 'pageoptions', 'pageloadedcallback': function(requestaccepted, status) { document.body.style.visibility = 'visible'; if (!requestaccepted) {} } }, 'searchboxblock': { 'container': 'searchbox', 'type': 'searchbox', 'fontsizesearchinput': 16, 'fontsizesearchbutton': 13, 'widthsearchinput': 215, 'colorsearchbutton': '#e2e2e2', 'hidesearchinputborder': false, 'hidesearchbuttonborder': false }, 'mainrs': { 'container': 'main_rs', 'type': 'relatedsearch', 'colorbackground': 'transparent', 'number': 6, 'fontsizetitle': 19, 'titlebold': true, 'colortitlelink': '#079ce9', 'notitleunderline': false, 'lineheighttitle': 30, 'fontfamily': 'arial', 'horizontalalignment': 'center', 'fontsizeattribution': 13, 'colorattribution': '#ababab', 'attributionbold': true, 'attributionuppercase': false, 'attributionspacingbelow': 36, 'rolloverlinkunderline': false, 'rolloverlinkcolor': '#00c800', 'coloradseparator': '#202020' } }; </script> <div id="main-wrap" class="clearfix"> <div class="container clearfix"> <div class="header clearfix"> <div class="leftblk"> <!-- <img src="http://c.rmgserving.com/rmgpsc/7867/logo1.png" /> --> <h3 class="domain_name">http.com</h3> </div> <div class="searchbox clearfix" id="searchbox"></div> </div> <div class="content clearfix"> <div class="arrows frt_arr"></div> <div class="kwd_bloack clearfix" id="main_rs"></div> <div class="arrows lst_arr"></div> </div> </div> <div class="bottom_bg clearfix"> <div class="bottom_rs clearfix"> <!--<span class="separator"></span>--> </div> </div> <div class="footer-nav"> <a href="#" onclick="return __gpup('http://www.http.com/rmgdsc/rprivacypolicy.php',600,800,'rpp');">privacy policy</a> </div> </div> <script type="text/javascript" language="javascript"> window._debug = false; window._dumpdata = false; var _cflp = true; var pgld = true; var totrs = -1; var cntrs = 0; var _cfstc = false; var _cfblocker = true; var _cfrg = true; var _cfhelp = _cfhelp || {}; _cfhelp.design = design || {}; _cfhelp.servvars = { "webadfl": "webads.php", "_clhdl": "http:\/\/www.http.com\/rg-cltrack.php?&gr=%5b%7crdr_url%7c%5d&gm=1whi0lwrg0sxkx4psd8qycoud1dkai2x1l8sgg1fmsd7bfewmbf%2fyegsqr%2bzlis%2fkmmlg273bt8vsq1oofkdtwu2blulooe9e9f%2fgbkvb3y9mwztrluiokcvqtb5zk84c2evcnaf2g3r9bp3rsh1xfxrzc%2be8ygoveykl4onqkclbtlodzh%2bghyfxmafdmqh&gc=11101851242258318844884&gi=xyb9maqozttvcq86lfyld8rnpuvlew8qarhjqzucy26g%2blay%2f2uhyh%2ba6ff50kcc1pxtbiluwcu4jhcv3wduawhfl%2fk8mkrktwu8eb0jgllzw7eesqi3ynxhbg7655fy%2flkmke6nbitt%2fuicvqlrvf1w%2f0mgzepy07jwvespupqnbujvqaw3ggby3vkjixfm2atlkropbyoykyholpigvyybcibjqvm3kscirxoyampxjtprto%2b0lbfqmrt0%2bv05gchdcqw0kwcbjr1gshmwisk5vxg28qmhurbftwmfztdpehobgozuohjtcrkzp6qclhjxeh43ucmzlzbbc8ruha%3d%3d", "kchst": "http:\/\/www.http.com\/", "kcpg": "render", "kcprm": "ga=5rki1sssbwfmmny4rdxg%2bb7vs0yzngnq9jphpslhssvfu0nyshpfxwu0exobfao5idfzqrtzujczjrxonxp3pxtpv7ezer14zh7kwg69e5lf08niagsfukiybsbybiqgw92x314xjqy5h09a65wi7jihzrlv0preub%2f7smvqucnleg70qvvfr7kkytx9z4no&gqsg=4ovo54jg6fc8v4dgarwvlluoqfit9l0g4kypdpykikp3xttitvahdjpyd8jv8amp&maxads=0&gerf=nivtbz66fmb06l%2fzgsycsupdtbcvflddp21rukg8zvs%3d&wait=true", "jtchdl": "0", "lkwtkn": null, "qry": null, "cntry": "ie", "prvid": 1566375, "lgky": "vfjicujequztmgq3dvy0amzammfivi8vl2g2wuvmrkqxnvp6eejrcss1wfl3k3cvzffiss9an1y4ne1kamniui95tw04q3p6ek9rejr1n1premljs1horjiznef2z3d3tgkyughgnkjxredyrdjlnzzowvmraxd0cfzgk1hiwty5agnyrtlmohlda3e5bmplthrtelj3pt0%3d", "_aftrprss": "", "wclhdl": "http:\/\/www.http.com\/webclk?&gr=%5b%7crdr_url%7c%5d&gm=n3djgjxerda%2b8ln3%2b884cdaiwdgzxlce6pgovrvm8cweqfkj9%2fssaw13remoendu59z53riax7qkedb%2bbc7k6li6gfboxqr7qkhujpzqsjmhuo0jnsgwbv6ey8r4qxt34rdgzthg7psdzqcdyglmkjkrweobyyf1i3drnmqljoxf8crtdnmozwb5hxp8g2kl&gc=11101851242258318844501&gi=3asgzsvnxueziegh6skvmb9ohmte%2brtyb0xjqzqrg%2begxxiixbbr%2fnpmg%2fepoc3sbbpbaumlcsrdngrk3viiauqqjkydc5srcnaqihavcsz4ccvosjgd4kjkepiavn2mkcxslbzfrbnv4lj3qwlncepoupjad8goku2zikd%2b2wdktoaj236za8yezznaejv7cqvzi7banot7lfhat4yfvqydvpwbpobrothy86aabfvvwr%2bduudu2z1hgno7krujx945jhkd%2bhgj7szcxsb6xbb7wblublactda5uwqkpltif5n7chxccjtf%2bysc%2fddegcmi71z8fbc6slsz%2fyvsjq%3d%3d", "is_webad_enabled": 0, "loaderimage": "http:\/\/c.rmgserving.com\/rmgisc\/loader.gif", "_afdad": 1, "noredir": 0, "erpub": "oversee11_3ph_adult_xml", "erch": "372", "erpubcln": "ca-dp-oversee11_3ph_xml", "erchcln": "000307", "ghu": "http:\/\/www.http.com\/rg-erdr.php?_rpo=t ntzzffi&_rdm=9f1njxf43bjvmfnf4.jvv&p=j1c4gcvmfn9fffgofgxoyva%7c%40%7cbzgzte%2c5f95zbt%2c5f95et%7c%40%7cx55g.jvv%7c%40%7c%7c%40%7c%7c%40%7czzbhzezhe%7c%40%7czhzzfth%7c%40%7ck-%7c%40%7c19c4nw4cgfhztettegzgztbt%7c%40%7ct+nh8llbj%7c%40%7ct+7zfzkfh&ga=5rki1sssbwfmmny4rdxg%2bb7vs0yzngnq9jphpslhssvfu0nyshpfxwu0exobfao5idfzqrtzujczjrxonxp3pxtpv7ezer14zh7kwg69e5lf08niagsfukiybsbybiqgw92x314xjqy5h09a65wi7jihzrlv0preub%2f7smvqucnleg70qvvfr7kkytx9z4no" }; _cfhelp.newopts = { "pageoptions": { "kw": "http", "pubid": "dp-oversee32_3ph_xml", "channel": "012174,test107,test49", "hl": "", "adtest": "off", "resultspagebaseurl": "http:\/\/www.http.com\/?ga=5rki1sssbwfmmny4rdxg%2bb7vs0yzngnq9jphpslhssvfu0nyshpfxwu0exobfao5idfzqrtzujczjrxonxp3pxtpv7ezer14zh7kwg69e5lf08niagsfukiybsbybiqgw92x314xjqy5h09a65wi7jihzrlv0preub%2f7smvqucnleg70qvvfr7kkytx9z4no&gqsg=4ovo54jg6fc8v4dgarwvlluoqfit9l0g4kypdpykikp3xttitvahdjpyd8jv8amp&maxads=0&gerf=1nwsv6zgpkznltoccc1lupxage73x0kznuyofwpplqw%3d&wait=true", "clicktrackurl": "http:\/\/www.http.com\/rg-cltrack.php?&gr=http%3a%2f%2fgoogle.com%2f%3frmgcaf%261437578625&gm=lchzrgqvmf5gbi%2fojnvho9f0h1pk6b4imvg4sd83gr0zwhcg7kuy7a5jisfiua0ovwzyb4g4cbzlk6ddwhxlys%2fogwafee2w6vlaahtaroqsrags%2fxib7w%2bhm0bejgeykmmxhvqya9xyrovuupko7sfwkop26qw4beasra7pvaleohdknqej8irgk41fopbr&gc=11101851242258318844252&gi=dqjej2libm6eovjrqxf%2fslkevo2mmfaigz5lwktbfktdn9l7hafs7w3vknwbjsghc5jthqkexetqm8meun%2f4m5tczm0vphb237zgyupobtb1%2bdajosrcyufknr9lf6i32soknguvevo7dhx9bhsz7scmxyplkjicrrb7wxfynrwz0plnccbrw8hyapbhclr9gvbhswiudzpmjwgfrnyh%2b9iqryf%2bx0wfzlunkbgtnldmxjup0vm%2bjku%2bc4rprcocv7pchhlr0%2fkp2vhskalwtpcuca9p04lbpqttmcdlol%2fpm%2baeig79dx%2bb28yvlkbepmifhq6%2bt%2b2lndqdlfx%2fcomvhjee%2bmfvwkrgy8%2f9hqfi%2b9uvblgcgjcttysrucn7", "domainregistrant": "as-drid-2351749742621707", "optimizeterms": false, "terms": "[\"domain registration\",\"network monitoring\",\"email hosting\",\"website hosting\",\"network monitoring software\",\"high speed internet\",\"cable internet\",\"broadband internet\",\"web security\",\"dial-up internet\",\"wireless internet providers\",\"unlimited broadband\",\"internet speed check\",\"compare broadband\",\"cheap internet service\",\"best broadband deals\",\"internet solutions\",\"internet music\",\"internet help\",\"internet telephony\",\"business internet providers\",\"broadband availability\",\"prepaid wireless internet\",\"internet florists\",\"mobile wireless internet\"]", "uioptimize": false, "domainname": "http.com" }, "relatedsearch": { "adloadedcallback": function(cnm, ld) { if (pgld && !ld && _cfrg && !_cfstc && _cflp) { cntrs++; if (cntrs >= totrs && totrs != -1) { window.location = "http://www.http.com/?_stc_=1" } } } }, "textads": { "adloadedcallback": function(cnm, ld) {} }, "imagead": { "adloadedcallback": function(cnm, ld) {} }, "ads": { "adloadedcallback": function(cnm, ld) {} } }; _cfhelp.newopts.pageoptions["pageloadedcallback"] = function(requestaccepted, status) { this.onpageload(requestaccepted, status); _cfblocker = false }; try { if (abp) { _cfhelp.newopts.pageoptions['channel'] = _cfhelp.newopts.pageoptions['channel'] + ',test101' } } catch (e) {} </script> <script type="text/javascript" src="http://a.rmgserving.com/rmgdsc/newcafv2.js?1.1"></script> </body> </html>
Comments
Post a Comment