Async: TypeError: Cannot read property 'Symbol(Symbol.toStringTag)' of undefined

Created on 6 Jun 2017  ·  5Comments  ·  Source: caolan/async

This isn't really a bug report, more of a question as to what I may be doing wrong or if a dependency isn't installing correctly. I have included the template in case it is a bug.

Whenever attempting to run the init script which calls various other functions of the bot, I am given the following error of "TypeError: Cannot read property 'Symbol(Symbol.toStringTag)' of undefined" at various different points in my code, relating to async calls or callback functions which are passed in an async.waterfall, or in the distasync.js script itself.

What version of async are you using? 2.4.1

Which environment did the issue occur in (Node version/browser version) Node v6.10.3

What did you do? Please include a minimal reproducible case illustrating issue. I ran various instances of async.waterfall which initialized the bot's connections. These calls are made in bot_startup.js, which call functions from channel_connect.js

What did you expect to happen? Until I updated async recently, everything was working fine and this error did not exist. I expected the script to run as it had previously.

What was the actual result?
image

Here is my post about it on StackOverflow, which unfortunately does not have an answer but might help.

Most helpful comment

Looks like one or more of the functions you're passing in to waterfall are undefined.

All 5 comments

Looks like one or more of the functions you're passing in to waterfall are undefined.

Line #51 and #52 of bot_startup, those functions dont look to be defined in channel_connect

I am using async library of node js where I get the same error I want my result variable of createjob is passed to rescheduled jobs it gives error and the result is not passing to my rescheduledjob function but according to async.waterfall definition it pass callback argument to next function

asynch.waterfall
    ([
        x.createJob(jobDefine, thread_id, (result) => {
            data = result;
            console.log(result);
        }),
        x.rescheduleJob(data, jobDefine, 5000, (err, data) => {
            debugger;
        }),
        function (err, result) {
            // result now equals 'done' 
        }
    ])

@rajatprogrammer x.createJob and x.rescheduleJob don't look like they return functions.

@aearly thanks, bro issue resolved i don't pass the callback bro

Was this page helpful?
0 / 5 - 0 ratings