title: Meteor HTTP.call undefined on Client-side, working on Server-side
body: <p>I am currently trying to learn how to do HTTP requests in Meteor. When I run the code, I can properly see the data in the console. However, on the client side all I get is "undefined". I believe I'm running the HTTP.get method synchronously.</p>
  
  <p>.JS file</p>
  
  <pre><code>if (Meteor.isClient) {
      Template.test.helpers({
  
          testGET: function(){
              var origin = Meteor.call('fetchFromService');
              console.log(origin);  //-- Displays 'Undefined'
          }
  
      });
  }
  
  if (Meteor.isServer) {
      Meteor.methods({
          fetchFromService: function() {
              this.unblock();
              var url = "https://httpbin.org/get";
              var result;
  
              try{
                  result = HTTP.get( url );
              } catch(e) {
                  result = "false";
              }
  
              console.log(result.data.origin); //-- Displays the data properly
              return result.data.origin;
          }
      });
  }
  </code></pre>