{"id":6061,"date":"2014-04-12T02:58:39","date_gmt":"2014-04-12T02:58:39","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/azure-mobile-service-error-unexpected-connection-failure-collection-of-common-programming-errors-2\/"},"modified":"2014-04-12T02:58:39","modified_gmt":"2014-04-12T02:58:39","slug":"azure-mobile-service-error-unexpected-connection-failure-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/azure-mobile-service-error-unexpected-connection-failure-collection-of-common-programming-errors-2\/","title":{"rendered":"Azure Mobile Service Error (Unexpected Connection failure.)-Collection of common programming errors"},"content":{"rendered":"<p>Hi Randall,<\/p>\n<p>Thanks for your Idea. You provided me some direction to think. Your Idea to isolate the issue was great thing to start with. I should have thought that way from\u00a0beginning, but some how not able to.<\/p>\n<p>I created a separate app for testing this and added the code to launch section of the app:<\/p>\n<p>WinJS.xhr({ \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 url: &#8220;https:\/\/diabetolyzer.azure-mobile.net\/tables\/food_items\/&#8221;, \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 type: &#8220;get&#8221;, \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 headers: { &#8220;X-ZUMO-APPLICATION&#8221;: &#8220;MyKEY&#8221; } \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }).done(function (response) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 var test = response; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }, function (error) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 var test = error; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }, function (Progress) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 var test = Progress; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 progress.innerText += &#8221; .&#8221;;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 });<\/p>\n<p>Result of this code is again ending up in error block with empty response and status code as &#8220;0&#8221;.<\/p>\n<p>I also tried a new machine with fresh Win8 and visual studio + azure mobile sdk. Nothing else is installed and no setting changes done. When I tried to run the same app on this machine I got\u00a0<\/p>\n<p>&#8220;Internal Server Error&#8221;. Not sure if this is the fault of azure mobile client or the code or something else. Now I am going to try to copy the functionality from sdk into my own mobile client using jQuery. I&#8217;ll come back later to check if some one is able to suggest some thing meaning full like you have.<\/p>\n<p>Thanks.<\/p>\n<p>Just for your notes &#8211;\u00a0The link you provided in this reply is not working.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi Randall, Thanks for your Idea. You provided me some direction to think. Your Idea to isolate the issue was great thing to start with. I should have thought that way from\u00a0beginning, but some how not able to. I created a separate app for testing this and added the code to launch section of the [&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-6061","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6061","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=6061"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6061\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}