Meteor Method - Find in collection inside callback

I’m having troubles when fetching results from a collection find. When I try to fetch the find results I get the following error:

Error: Can’t wait without a fiber

Any suggestions?

import { Meteor } from 'meteor/meteor';
import FB from 'fb';
import Customers from './collections/customers';

FB.mapi = Meteor.wrapAsync(FB.napi);

    'facebookImport': function(access_token) {

        //SYNC - Get facebook user info
        let res = FB.mapi('me', {
            fields: [
            access_token: access_token

        //Get user's books
        FB.api('me/books', {
            access_token: access_token
        }, function(res) {
        //    console.log(res);
            let a = Customers.find({id:}).fetch();

I’d probably try this first:

let a = Promise.await(Customers.rawCollection().find({ id: })).fetch();
1 Like


i’m reciving error

TypeError: Promise.await is not a function app.js?..8ed267c (line 241, …

please suggest what I’m doing wrong

    'tasks.get': async function(params) {
        const result = Promise.await(Task.find(params));
        return result;
'tasks': function() {
return'tasks.get', {});

Oops - you will need to add the promise package:

meteor add promise

and (if you’re using imports)

import { Promise } from 'meteor/promise';

Oh - also - you don’t need async methods with Promise.await (won’t do any harm, though).