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

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

Closed
cobya opened this issue Jun 6, 2017 · 5 comments
Closed

Comments

@cobya
Copy link

cobya commented Jun 6, 2017

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 \dist\async.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.

@aearly
Copy link
Collaborator

aearly commented Jun 6, 2017

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

@megawac
Copy link
Collaborator

megawac commented Jun 6, 2017

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

@cobya cobya closed this as completed Jun 7, 2017
@rajatprogrammer
Copy link

rajatprogrammer commented Nov 29, 2017

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' 
        }
    ])

@aearly
Copy link
Collaborator

aearly commented Nov 30, 2017

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

@rajatprogrammer
Copy link

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

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

4 participants