Can't wait without a fiber - apollo - meteor 1.5.2.1


#1

Hi,

I use async and await functions with meteor and apollo and it worked fine till I upgraded from 1.4.2.7 to 1.5.2.1.

Since then I get fiber errors when using a async functions in some ways with my apollo setup. For example, the error currently occures in my server setup with apollo-server-express:

Throwing: Invalid options provided to ApolloServer: Error: Can't wait without a fiber in graphiql.

It happens due to this async-await function in my setup:

// setup the express-server-graphql
expressApp.use(
    GRAPHQL_PATH,
    bodyParser.json(),
    graphqlExpress(async req => {
        const context = await createContext(req.headers.authorization);

        return {
            schema,
            context,
            debug: Meteor.isDevelopment,
            formatError,
        };
    }),
);

I’m using the following apollo versions:

"apollo-client": "^1.9.3",
"apollo-server-express": "^1.1.2",
"express": "^4.14.0",

I don’t get it why I get this error now … it worked before. Do you have any idea?


#2

Similar weird stuff happening with 1.5.2.1 - now downgraded to 1.5.1.
Hopefully to be fixed in 1.5.2.2 - https://github.com/meteor/meteor/pull/9151