You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Router.use(Router.bodyParser());// If commented everything works fine but no 'body'Router.route('/pi',{where: 'server'}).post(function(){if(this.request.body){console.log('body: '+JSON.stringify(this.request.body,null,4));}varresult=NUMBERS.findOne({name: 'PI'});this.response.writeHead(200,{'Content-Type': 'text/html'});this.response.end('PI = '+result.value);});
Error: Can't wait without a fiber
at Function.wait (/home/hani/.meteor/packages/meteor-tool/.1.0.33.q7phxd++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:83:9)
at Object.Future.wait (/home/hani/.meteor/packages/meteor-tool/.1.0.33.q7phxd++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:325:10)
at _.extend._nextObject (packages/mongo/mongo_driver.js:858)
at _.extend.forEach (packages/mongo/mongo_driver.js:892)
at _.extend.map (packages/mongo/mongo_driver.js:902)
at _.extend.fetch (packages/mongo/mongo_driver.js:926)
at Cursor.(anonymous function) [as fetch] (packages/mongo/mongo_driver.js:741)
at MongoConnection.findOne (packages/mongo/mongo_driver.js:647)
at _.extend.findOne (packages/mongo/coll
The text was updated successfully, but these errors were encountered:
I am using
iron:router@=1.0.0-pre4
As suggested in previous posts, in the mean time we should add
Router.use(Router.bodyParser())
until the old behaviour of iron-router is back.But this is causing the
Error: Can't wait without a fiber
when there is a database operation inside the route. For reproduction use http://www.getpostman.com/ for posting some JSON and use this repository: https://github.com/boustanihani/iron-router-pre4-bodyParser as a server.The text was updated successfully, but these errors were encountered: