Suppose my REST root url is
localhost:1000
and URI is " POST /users.json" and parameter are id and key ..
Already I tried this
var result = Meteor.http.call("POST", url, { params: { key: appkey ,id: "xa4" }}) ;
console.log(result);
but it shows ;
[13:34:43.190] Error: Can't make a blocking HTTP call from the client; callback required. @ http://localhost:1000/packages/http.js?4aec4250e79a92408f1c5e234a52434907239586:153
--
You received this message because you are subscribed to a topic in the Google Groups "meteor-talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/meteor-talk/WIAs3MLxyUo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to meteor-talk...@googlegroups.com.
Here is the solution :I run my REST API server in localhost . I just make a mistake that , I call Meteor.http.call from (Meteor.isClient) block. The solution is simple , just call this code from Meteor.isServer block and return the responce object to Meteor.isClient