question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

callback is not a function error when using SyntheticMutator.update

See original GitHub issue

I’m following the Synthetic mutation example in the documentation. But whenever I call on SyntheticMutator.update(), I’m getting this error

/home/rj/.meteor/packages/cultofcoders_redis-oplog/.1.2.7_1.13z1z2p.8gfs++os+web.browser+web.cordova/npm/node_modules/redis/lib/utils.js:89
        callback(err, res);
        ^
TypeError: callback is not a function
    at Object.callbackOrEmit [as callback_or_emit] (/home/rj/.meteor/packages/cultofcoders_redis-oplog/.1.2.7_1.13z1z2p.8gfs++os+web.browser+web.cordova/npm/node_modules/redis/lib/utils.js:89:9)
    at RedisClient.return_error (/home/rj/.meteor/packages/cultofcoders_redis-oplog/.1.2.7_1.13z1z2p.8gfs++os+web.browser+web.cordova/npm/node_modules/redis/index.js:706:11)
    at JavascriptRedisParser.returnError (/home/rj/.meteor/packages/cultofcoders_redis-oplog/.1.2.7_1.13z1z2p.8gfs++os+web.browser+web.cordova/npm/node_modules/redis/index.js:196:18)
    at JavascriptRedisParser.execute (/home/rj/.meteor/packages/cultofcoders_redis-oplog/.1.2.7_1.13z1z2p.8gfs++os+web.browser+web.cordova/npm/node_modules/redis-parser/lib/parser.js:572:12)
    at Socket.<anonymous> (/home/rj/.meteor/packages/cultofcoders_redis-oplog/.1.2.7_1.13z1z2p.8gfs++os+web.browser+web.cordova/npm/node_modules/redis/index.js:274:27)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at TCP.onread (net.js:597:20)
Exited with code: 1
Your application is crashing. Waiting for file change.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dovydaskukaliscommented, Sep 15, 2020

It’s because channel variable here is an array while it should be a string. This is the line that causes that bug.

0reactions
mvogttechcommented, Aug 7, 2021

I am getting the same error. Any resolution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Callback is not a function for update in Node JS - Stack Overflow
The error message is telling that whatever value was supplied for the callback option, that value is not an executable function. It might...
Read more >
Callbacks | Vulcan Docs
validationErrors is an array that starts empty and then gets populated by each successive validation callback. If that array is not empty, the...
Read more >
ANRs - Android Developers
ANRs are a problem because the app's main thread, which is responsible for updating the UI, can't process user input events or draw,...
Read more >
react-final-form - npm
Introduces field-level validation functions and demonstrates how to display errors next to fields using child render functions. Synchronous ...
Read more >
Hands-On way to build Frontend with React | Nick Ovchinnikov
RDT profiler and React.memo + useCallback intro ... And also we will not go into to run TypeScript like global dependency. We're just...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found