{"id":159,"date":"2022-08-16T17:14:37","date_gmt":"2022-08-16T15:14:37","guid":{"rendered":"http:\/\/buki.io\/?p=159"},"modified":"2022-08-16T16:18:23","modified_gmt":"2022-08-16T15:18:23","slug":"connection-refused-with-local-development-proxy","status":"publish","type":"post","link":"http:\/\/buki.io\/?p=159","title":{"rendered":"Connection refused with local development proxy"},"content":{"rendered":"<div class=\"postie-post\">I use koa-proxies for local development. Recently, all of a sudden the proxy stopped working, i.d. the routes where correctly mapped (add logs:true to config), but when I called the service with the proxied port, I only got 503 from the backend.<br \/>\nAfter tearing my hair out, I check \/etc\/hosts file and removed the ip6 localhost entry (::1 localhost). After that I worked fine.<br \/>\nI spotted that when I doing a curl with -vvv option on. Still don\u2019t know when this got added. I installed cntlm for testing purposes. Maybe that inserted this entry, as this is the only proxy related thing I did around that time.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I use koa-proxies for local development. Recently, all of a sudden the proxy stopped working, i.d. the routes where correctly mapped (add logs:true to config), but when I called the service with the proxied port, I only got 503 from the backend. After tearing my hair out, I check \/etc\/hosts file and removed the ip6 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/buki.io\/?p=159\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8222;Connection refused with local development proxy&#8220;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[3],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7N2pi-2z","_links":{"self":[{"href":"http:\/\/buki.io\/index.php?rest_route=\/wp\/v2\/posts\/159"}],"collection":[{"href":"http:\/\/buki.io\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/buki.io\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/buki.io\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/buki.io\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=159"}],"version-history":[{"count":0,"href":"http:\/\/buki.io\/index.php?rest_route=\/wp\/v2\/posts\/159\/revisions"}],"wp:attachment":[{"href":"http:\/\/buki.io\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/buki.io\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/buki.io\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}