Note that there are some explanatory texts on larger screens.

plurals
  1. POMeteor.http.get request -> Error: Hostname/IP doesn't match certificate's altnames
    primarykey
    data
    text
    <p>I'm trying to use meteor.http module and I'm getting the following error on the server side. "Error: Hostname/IP doesn't match certificate's altnames" since I'm new in Meteor and in Node.js and its javaScript debugging is hard (btw how can I debug server side scripts ? client side it's easy), I'm using MAC OS X 10.9 not sure if it's relevent...</p> <p>Thanks Ronen</p> <p>client side code:</p> <pre><code>'click #buildButton' : function () { console.log("Jenkins job request"); $('#buildButton').attr('disabled','true').val('loading...'); var userName = "Ronen"; Meteor.call('jenkinsServiceBuild', function(err, respJson) { if(err) { window.alert("Error: " + err.reason); console.log("error occured on receiving data on server. ", err ); } else { window.alert("Success: "); console.log("respJson: ", respJson); //window.alert(respJson.length + ' tweets received.'); Session.set("recentTweets",respJson); } $('#buildButton').removeAttr('disabled').val('build'); }); } </code></pre> <p>Server Side Code:</p> <pre><code>Meteor.methods({jenkinsServiceBuild: function(userName) { var url = "https://www.ynet.co.il"; //synchronous GET var result = Meteor.http.get(url, {timeout:30000}); if(result.statusCode==200) { var respJson = JSON.parse(result.content); console.log("response received."); return respJson; } else { console.log("Response issue: ", result.statusCode); var errorJson = JSON.parse(result.content); throw new Meteor.Error(result.statusCode, errorJson.error); } } </code></pre> <p>});</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload