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 '_reject' of undefined #4

Open
topliceanu opened this issue Nov 19, 2017 · 2 comments
Open

TypeError: Cannot read property '_reject' of undefined #4

topliceanu opened this issue Nov 19, 2017 · 2 comments

Comments

@topliceanu
Copy link

topliceanu commented Nov 19, 2017

Hi, I'm getting this error a couple of minutes after successfully starting a worker process:

/home/me/node_modules/bluebird/js/main/promise.js:783
        promise._reject(value, carriedStackTrace);
                ^

TypeError: Cannot read property '_reject' of undefined
    at Promise._settlePromiseAt (/home/me/node_modules/bluebird/js/main/promise.js:783:17)
    at Promise._settlePromises (/home/me/node_modules/bluebird/js/main/promise.js:884:14)
    at Async._drainQueue (/home/me/node_modules/bluebird/js/main/async.js:98:12)
    at Async._drainQueues (/home/me/node_modules/bluebird/js/main/async.js:103:10)
    at Async.drainQueues (/home/me/node_modules/bluebird/js/main/async.js:37:14)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)

I'm running a simple worker process in a docker image: FROM node:8.8-alpine.

@topliceanu
Copy link
Author

topliceanu commented Nov 19, 2017

I figure out what the problem was by enabling DEBUG=*:

Sun, 19 Nov 2017 20:27:56 GMT beanstalkd-worker:webhooks reserve error TimeoutError: timed out connecting to beanstalkd (10000ms)
.....
Sun, 19 Nov 2017 20:28:06 GMT beanstalkd-worker:webhooks reserve error TimeoutError: timed out connecting to beanstalkd (10000ms)
.....
Sun, 19 Nov 2017 20:28:16 GMT beanstalkd-worker:webhooks reserve error TimeoutError: timed out connecting to beanstalkd (10000ms)
/home/me/node_modules/bluebird/js/main/promise.js:783
        promise._reject(value, carriedStackTrace);
                ^

TypeError: Cannot read property '_reject' of undefined
    at Promise._settlePromiseAt (/home/me/node_modules/bluebird/js/main/promise.js:783:17)
    at Promise._settlePromises (/home/me/node_modules/bluebird/js/main/promise.js:884:14)
    at Async._drainQueue (/home/me/node_modules/bluebird/js/main/async.js:98:12)
    at Async._drainQueues (/home/me/node_modules/bluebird/js/main/async.js:103:10)
    at Async.drainQueues (/home/me/node_modules/bluebird/js/main/async.js:37:14)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)

It tries to reconnect a couple of times then gives up. Any way to catch and handle these errors?

@mickhansen
Copy link
Contributor

Doesn't look like the code properly exposes connection errors at the moment

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