Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in formatError function #6

Open
sujeshthekkepatt opened this issue Feb 17, 2018 · 2 comments
Open

Error in formatError function #6

sujeshthekkepatt opened this issue Feb 17, 2018 · 2 comments

Comments

@sujeshthekkepatt
Copy link

sujeshthekkepatt commented Feb 17, 2018

I am getting Error in formatError function: TypeError: Cannot read property 'output' of undefined. followed the instructions setting up it with Apollo.

@perrygeorget
Copy link

perrygeorget commented Feb 22, 2018

I get the same error. Here is our stack trace:

Error in formatError function: TypeError: Cannot read property 'output' of undefined at Object.formatError (/var/app/current/node_modules/graphql-apollo-errors/dist/index.js:81:10) at /var/app/current/node_modules/graphql-server-core/src/runQuery.ts:75:30 at Array.map (native) at format (/var/app/current/node_modules/graphql-server-core/src/runQuery.ts:72:23) at doRunQuery (/var/app/current/node_modules/graphql-server-core/src/runQuery.ts:153:42) at /var/app/current/node_modules/graphql-server-core/src/runQuery.ts:59:39 at bound (domain.js:280:14) at runBound (domain.js:293:12) at tryCatcher (/var/app/current/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/var/app/current/node_modules/bluebird/js/release/promise.js:512:31) at Promise._settlePromise (/var/app/current/node_modules/bluebird/js/release/promise.js:569:18) at Promise._settlePromiseCtx (/var/app/current/node_modules/bluebird/js/release/promise.js:606:10) at Async._drainQueue (/var/app/current/node_modules/bluebird/js/release/async.js:138:12) at Async._drainQueues (/var/app/current/node_modules/bluebird/js/release/async.js:143:10) at Immediate.Async.drainQueues (/var/app/current/node_modules/bluebird/js/release/async.js:17:14) at runCallback (timers.js:672:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5)

@perrygeorget
Copy link

perrygeorget commented Feb 22, 2018

I think the problem is that the nonBoomTransformer function needs to return an ErrorResult instance. It would be nice to have an example of how to implement those methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants