{"id":225,"date":"2022-08-30T14:57:48","date_gmt":"2022-08-30T14:57:48","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/08\/31\/problem-about-inets-record-and-share-programming-errors\/"},"modified":"2022-08-30T14:57:48","modified_gmt":"2022-08-30T14:57:48","slug":"problem-about-inets-record-and-share-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-inets-record-and-share-programming-errors\/","title":{"rendered":"problem about inets-Record and share programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c9a36563f0134065ed56bab8d0ce6971?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nZed<br \/>\nerlang inets<br \/>\nI have an Erlang app which makes a large number of http calls to external sites using inets, using the code belowcase http:request(get, {Url, []}, [{autoredirect, false}], []) of {ok, {{_, Code, _}, _, Body}}-&gt;case Code of200 -&gt;HandlerFn(Body);_ -&gt;{error, io:format(&#8220;~s returned HTTP ~p&#8221;, [Broker, Code])}end; Response -&gt; %% block to handle unexpected responses from inets{error, io:format(&#8220;~s returned ~p&#8221;, [Broker, Response])} end.There is an explicit block to handle anything strange inets might return [Response]. Despite this, I still get what look like inets error reports dumped to the console [sample below]. What am I doing wrong here ? Do I need to configure some kind of inets er<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-08-31 04:58:19. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Zed erlang inets I have an Erlang app which makes a large number of http calls to external sites using inets, using the code belowcase http:request(get, {Url, []}, [{autoredirect, false}], []) of {ok, {{_, Code, _}, _, Body}}-&gt;case Code of200 -&gt;HandlerFn(Body);_ -&gt;{error, io:format(&#8220;~s returned HTTP ~p&#8221;, [Broker, Code])}end; Response -&gt; %% block to handle unexpected [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-225","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=225"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/225\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}